From 84601f14a3c265fbfd1dd334f53a49c33988caf6 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 19 Jun 2004 01:22:48 +0000 Subject: [PATCH] Change pydoc.stripid() be able to match against 64-bit addresses by having regex match from 6 to 16 characters. --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.50.0