Commit 84601f14 authored by Brett Cannon's avatar Brett Cannon

Change pydoc.stripid() be able to match against 64-bit addresses by having

regex match from 6 to 16 characters.
parent c6c1f478
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment