From 5d0152fce3cee0e5a3d07bb7eb8a78e0b180854e 2013-08-29 10:18:32 From: rossant Date: 2013-08-29 10:18:32 Subject: [PATCH] Fixed name error bug in function safe_unicode in module py3compat. --- diff --git a/IPython/utils/py3compat.py b/IPython/utils/py3compat.py index 9731368..f52a80d 100644 --- a/IPython/utils/py3compat.py +++ b/IPython/utils/py3compat.py @@ -60,12 +60,12 @@ def safe_unicode(e): pass try: - return py3compat.str_to_unicode(str(e)) + return str_to_unicode(str(e)) except UnicodeError: pass try: - return py3compat.str_to_unicode(repr(e)) + return str_to_unicode(repr(e)) except UnicodeError: pass