sagemath/sagemath-ipython3.patch
2015-04-26 11:38:53 -03:00

13 lines
699 B
Diff

diff -up src/sage/repl/display/formatter.py.orig src/sage/repl/display/formatter.py
--- src/sage/repl/display/formatter.py.orig 2015-04-26 11:35:47.474617033 -0300
+++ src/sage/repl/display/formatter.py 2015-04-26 11:36:17.859618196 -0300
@@ -60,7 +60,8 @@ This other facility uses a simple
#*****************************************************************************
-from IPython.core.formatters import PlainTextFormatter, warn_format_error
+from IPython.core.formatters import PlainTextFormatter
+from IPython.core.formatters import catch_format_error as warn_format_error
from IPython.utils.py3compat import str_to_unicode, unicode_to_str
from sage.repl.display.pretty_print import (