Show More
@@ -301,7 +301,8 b' class HistoryAccessor(HistoryAccessorBase):' | |||||
301 | cur = self.db.execute("SELECT session, line, %s FROM %s " %\ |
|
301 | cur = self.db.execute("SELECT session, line, %s FROM %s " %\ | |
302 | (toget, sqlfrom) + sql, params) |
|
302 | (toget, sqlfrom) + sql, params) | |
303 | if output: # Regroup into 3-tuples, and parse JSON |
|
303 | if output: # Regroup into 3-tuples, and parse JSON | |
304 | return ((ses, lin, (inp, out)) for ses, lin, inp, out in cur) |
|
304 | return ((ses, lin, (py3compat.cast_unicode_py2(inp), py3compat.cast_unicode_py2(out))) | |
|
305 | for ses, lin, inp, out in cur) | |||
305 | return cur |
|
306 | return cur | |
306 |
|
307 | |||
307 | @needs_sqlite |
|
308 | @needs_sqlite |
@@ -239,7 +239,7 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
239 | # Ignore blank lines and consecutive duplicates |
|
239 | # Ignore blank lines and consecutive duplicates | |
240 | cell = cell.rstrip() |
|
240 | cell = cell.rstrip() | |
241 | if cell and (cell != last_cell): |
|
241 | if cell and (cell != last_cell): | |
242 |
history.append( |
|
242 | history.append(cell) | |
243 | last_cell = cell |
|
243 | last_cell = cell | |
244 |
|
244 | |||
245 | self._style = self._make_style_from_name_or_cls(self.highlighting_style) |
|
245 | self._style = self._make_style_from_name_or_cls(self.highlighting_style) |
General Comments 0
You need to be logged in to leave comments.
Login now