Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Small correction to recent change in oinspect.

  • Loading branch information...
commit 74ba4eb414bd1d7bbd75bc8134d4a8740454d5b5 1 parent 76b8481
Thomas Kluyver authored August 02, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  IPython/core/oinspect.py
2  IPython/core/oinspect.py
@@ -253,7 +253,7 @@ def _getdef(self,obj,oname=''):
253 253
         try:
254 254
             # We need a plain string here, NOT unicode!
255 255
             hdef = oname + inspect.formatargspec(*getargspec(obj))
256  
-            return py3compat.unicode_to_str(hdef.encode('ascii'))
  256
+            return py3compat.unicode_to_str(hdef, 'ascii')
257 257
         except:
258 258
             return None
259 259
  

0 notes on commit 74ba4eb

Please sign in to comment.
Something went wrong with that request. Please try again.