[Python-checkins] python/dist/src/Lib pydoc.py,1.93,1.94

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Fri Jun 18 21:22:51 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18855/Lib

Modified Files:
	pydoc.py 
Log Message:
Change pydoc.stripid() be able to match against 64-bit addresses by having
regex match from 6 to 16 characters.


Index: pydoc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pydoc.py,v
retrieving revision 1.93
retrieving revision 1.94
diff -C2 -d -r1.93 -r1.94
*** pydoc.py	19 Jun 2004 01:02:43 -0000	1.93
--- pydoc.py	19 Jun 2004 01:22:48 -0000	1.94
***************
*** 114,118 ****
      return text
  
! _re_stripid = re.compile(r' at 0x[0-9a-f]{6,}(>+)$', re.IGNORECASE)
  def stripid(text):
      """Remove the hexadecimal id from a Python object representation."""
--- 114,118 ----
      return text
  
! _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."""




More information about the Python-checkins mailing list