Skip to content

Commit 18efb69

Browse files
authored
Removed the unicode_to_str conversion from the SagePrettyPrinter initialization.
Removed the unicode_to_str conversion from the SagePrettyPrinter initialization.
1 parent aa27703 commit 18efb69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sage/repl/display/formatter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
from io import StringIO
6363

6464
from IPython.core.formatters import DisplayFormatter, PlainTextFormatter
65-
from IPython.utils.py3compat import unicode_to_str
6665
from IPython.core.display import DisplayObject
6766

6867
from ipywidgets import Widget
@@ -311,7 +310,7 @@ def __call__(self, obj):
311310
print('---- calling ipython formatter ----')
312311
stream = StringIO()
313312
printer = SagePrettyPrinter(
314-
stream, self.max_width, unicode_to_str(self.newline))
313+
stream, self.max_width, self.newline)
315314
printer.pretty(obj)
316315
printer.flush()
317316
return stream.getvalue()

0 commit comments

Comments
 (0)