99import sys
1010import re
1111from columnize import columnize
12+ from mathics import replace_unicode_with_wl
1213from mathics .core .expression import Expression , String , Symbol
1314from mathics .core .expression import strip_context , from_python
1415from mathics .core .rules import Rule
15- from mathics_scanner .characters import (
16- named_characters ,
17- replace_unicode_with_wl ,
18- replace_wl_with_plain_text ,
19- )
16+ from mathics .core .characters import named_characters
2017
2118from pygments import highlight , lex
2219from mathicsscript .mmalexer import MathematicaLexer
@@ -256,7 +253,7 @@ def read_line(self, prompt):
256253 raise ShellEscapeException (line )
257254 return replace_unicode_with_wl (line )
258255
259- def print_result (self , result , output_style = "" , use_unicode = True ):
256+ def print_result (self , result , output_style = "" ):
260257 if result is None :
261258 # FIXME decide what to do here
262259 return
@@ -270,9 +267,7 @@ def print_result(self, result, output_style="", use_unicode=True):
270267 print (sys .exc_info ()[1 ])
271268 return
272269
273- out_str = replace_wl_with_plain_text (str (result .result ),
274- use_unicode = use_unicode )
275-
270+ out_str = str (result .result )
276271 if eval_type == "System`Graph" :
277272 out_str = "-Graph-"
278273 elif self .terminal_formatter : # pygmentize
0 commit comments