- reflects the change in type("").__name__ between 2.1 and 2.2. The
__name__ field is used to find a method to call for particular types.
r'<font color="#c040c0">\1</font>',
self.escape(testrepr))
+ repr_str = repr_string
+
def repr_instance(self, x, level):
try:
return self.escape(cram(stripid(repr(x)), self.maxstring))
return 'r' + testrepr[0] + test + testrepr[0]
return testrepr
+ repr_str = repr_string
+
def repr_instance(self, x, level):
try:
return cram(stripid(repr(x)), self.maxstring)