diff options
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index b878486..5b27a09 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -311,6 +311,8 @@ class HTMLRepr(Repr): 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)) @@ -860,6 +862,8 @@ class TextRepr(Repr): 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) |