We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa27703 commit 18efb69Copy full SHA for 18efb69
src/sage/repl/display/formatter.py
@@ -62,7 +62,6 @@
62
from io import StringIO
63
64
from IPython.core.formatters import DisplayFormatter, PlainTextFormatter
65
-from IPython.utils.py3compat import unicode_to_str
66
from IPython.core.display import DisplayObject
67
68
from ipywidgets import Widget
@@ -311,7 +310,7 @@ def __call__(self, obj):
311
310
print('---- calling ipython formatter ----')
312
stream = StringIO()
313
printer = SagePrettyPrinter(
314
- stream, self.max_width, unicode_to_str(self.newline))
+ stream, self.max_width, self.newline)
315
printer.pretty(obj)
316
printer.flush()
317
return stream.getvalue()
0 commit comments