Skip to content

Commit

Permalink
Fixed name error bug in function safe_unicode in module py3compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed Aug 29, 2013
1 parent 86e137e commit 5d0152f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/utils/py3compat.py
Expand Up @@ -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

Expand Down

1 comment on commit 5d0152f

@stonebig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

I didn't pull the whole current tree yet,but It seems this patch creates a problem under python3, windows.
(will confirm later, as perhaps the full current tree will be ok, a "2to3" magic solves it)

update, ok seems a "2to3" thing at second look, sorry for the disturbance

Please sign in to comment.