]> granicus.if.org Git - python/commitdiff
Change pydoc.stripid() be able to match against 64-bit addresses by having
authorBrett Cannon <bcannon@gmail.com>
Sat, 19 Jun 2004 01:22:48 +0000 (01:22 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 19 Jun 2004 01:22:48 +0000 (01:22 +0000)
regex match from 6 to 16 characters.

Lib/pydoc.py

index ea2d97c9afbca38ebe38de3d8e7e61d8cd91eee3..c02c1407f74467f43085d5199cd477da6117117d 100755 (executable)
@@ -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.