##// END OF EJS Templates
Move cast_unicode_py2 calls into HistoryAccessor
Thomas Kluyver -
Show More
@@ -301,7 +301,8 b' class HistoryAccessor(HistoryAccessorBase):'
301 301 cur = self.db.execute("SELECT session, line, %s FROM %s " %\
302 302 (toget, sqlfrom) + sql, params)
303 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 306 return cur
306 307
307 308 @needs_sqlite
@@ -239,7 +239,7 b' class TerminalInteractiveShell(InteractiveShell):'
239 239 # Ignore blank lines and consecutive duplicates
240 240 cell = cell.rstrip()
241 241 if cell and (cell != last_cell):
242 history.append(cast_unicode_py2(cell))
242 history.append(cell)
243 243 last_cell = cell
244 244
245 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