Permalink
Browse files

Small correction to recent change in oinspect.

  • Loading branch information...
1 parent 76b8481 commit 74ba4eb414bd1d7bbd75bc8134d4a8740454d5b5 @takluyver committed Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/oinspect.py
View
2 IPython/core/oinspect.py
@@ -253,7 +253,7 @@ def _getdef(self,obj,oname=''):
try:
# We need a plain string here, NOT unicode!
hdef = oname + inspect.formatargspec(*getargspec(obj))
- return py3compat.unicode_to_str(hdef.encode('ascii'))
+ return py3compat.unicode_to_str(hdef, 'ascii')
except:
return None

0 comments on commit 74ba4eb

Please sign in to comment.