Show More
@@ -1862,6 +1862,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
1862 | # Ignore blank lines and consecutive duplicates |
|
1862 | # Ignore blank lines and consecutive duplicates | |
1863 | cell = cell.rstrip() |
|
1863 | cell = cell.rstrip() | |
1864 | if cell and (cell != last_cell): |
|
1864 | if cell and (cell != last_cell): | |
|
1865 | try: | |||
1865 | if self.multiline_history: |
|
1866 | if self.multiline_history: | |
1866 | self.readline.add_history(py3compat.unicode_to_str(cell, |
|
1867 | self.readline.add_history(py3compat.unicode_to_str(cell, | |
1867 | stdin_encoding)) |
|
1868 | stdin_encoding)) | |
@@ -1871,6 +1872,11 b' class InteractiveShell(SingletonConfigurable):' | |||||
1871 | stdin_encoding)) |
|
1872 | stdin_encoding)) | |
1872 | last_cell = cell |
|
1873 | last_cell = cell | |
1873 |
|
1874 | |||
|
1875 | except TypeError: | |||
|
1876 | # The history DB can get corrupted so it returns strings | |||
|
1877 | # containing null bytes, which readline objects to. | |||
|
1878 | continue | |||
|
1879 | ||||
1874 | @skip_doctest |
|
1880 | @skip_doctest | |
1875 | def set_next_input(self, s): |
|
1881 | def set_next_input(self, s): | |
1876 | """ Sets the 'default' input string for the next command line. |
|
1882 | """ Sets the 'default' input string for the next command line. |
General Comments 0
You need to be logged in to leave comments.
Login now