diff --git a/Lib/pydoc.py b/Lib/pydoc.py index ea2d97c9afb..c02c1407f74 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -113,7 +113,7 @@ def cram(text, maxlen): return text[:pre] + '...' + text[len(text)-post:] return text -_re_stripid = re.compile(r' at 0x[0-9a-f]{6,}(>+)$', re.IGNORECASE) +_re_stripid = re.compile(r' at 0x[0-9a-f]{6,16}(>+)$', re.IGNORECASE) def stripid(text): """Remove the hexadecimal id from a Python object representation.""" # The behaviour of %p is implementation-dependent in terms of case.