From: Brett Cannon Date: Sat, 19 Jun 2004 01:22:48 +0000 (+0000) Subject: Change pydoc.stripid() be able to match against 64-bit addresses by having X-Git-Tag: v2.4a1~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84601f14a3c265fbfd1dd334f53a49c33988caf6;p=python Change pydoc.stripid() be able to match against 64-bit addresses by having regex match from 6 to 16 characters. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index ea2d97c9af..c02c1407f7 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.