##// END OF EJS Templates
Tweak description of failure.
Thomas Kluyver -
Show More
@@ -954,7 +954,7 b' Currently the magic system has the following functions:\\n"""'
954 vstr = unicode(var).encode(DEFAULT_ENCODING,
954 vstr = unicode(var).encode(DEFAULT_ENCODING,
955 'backslashreplace')
955 'backslashreplace')
956 except:
956 except:
957 vstr = "<object with id %d (repr failed)>" % id(var)
957 vstr = "<object with id %d (str() failed)>" % id(var)
958 vstr = vstr.replace('\n','\\n')
958 vstr = vstr.replace('\n','\\n')
959 if len(vstr) < 50:
959 if len(vstr) < 50:
960 print vstr
960 print vstr
General Comments 0
You need to be logged in to leave comments. Login now