Permalink
Browse files

Tweak description of failure.

  • Loading branch information...
1 parent 7ee8067 commit b2734175642d84caf37ae792d6656bb26fbe964b @takluyver committed May 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/magic.py
@@ -954,7 +954,7 @@ def type_name(v):
vstr = unicode(var).encode(DEFAULT_ENCODING,
'backslashreplace')
except:
- vstr = "<object with id %d (repr failed)>" % id(var)
+ vstr = "<object with id %d (str() failed)>" % id(var)
vstr = vstr.replace('\n','\\n')
if len(vstr) < 50:
print vstr

0 comments on commit b273417

Please sign in to comment.