summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-06-19 01:22:48 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-06-19 01:22:48 (GMT)
commit84601f14a3c265fbfd1dd334f53a49c33988caf6 (patch)
tree1c84f1d2e7cc3c24968d6b301d048935800d6890
parentc6c1f478d9236ed92312f55b0421497b4f86a302 (diff)
downloadcpython-84601f14a3c265fbfd1dd334f53a49c33988caf6.zip
cpython-84601f14a3c265fbfd1dd334f53a49c33988caf6.tar.gz
cpython-84601f14a3c265fbfd1dd334f53a49c33988caf6.tar.bz2
Change pydoc.stripid() be able to match against 64-bit addresses by having
regex match from 6 to 16 characters.
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index ea2d97c..c02c140 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.