[Python-checkins] python/dist/src/Lib/xml/dom minidom.py, 1.51,
1.51.10.1
anthonybaxter at users.sourceforge.net
anthonybaxter at users.sourceforge.net
Thu Nov 6 08:57:52 EST 2003
Update of /cvsroot/python/python/dist/src/Lib/xml/dom
In directory sc8-pr-cvs1:/tmp/cvs-serv15263/xml/dom
Modified Files:
Tag: release23-maint
minidom.py
Log Message:
On RH10, the PIE additions to gcc mean that id() can sometimes be a very
large 32 bit int, which comes out as a negative int. Workaround this to
prevent warnings from the test suite and the std lib.
Index: minidom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/dom/minidom.py,v
retrieving revision 1.51
retrieving revision 1.51.10.1
diff -C2 -d -r1.51 -r1.51.10.1
*** minidom.py 6 Apr 2003 09:01:07 -0000 1.51
--- minidom.py 6 Nov 2003 13:57:49 -0000 1.51.10.1
***************
*** 15,18 ****
--- 15,19 ----
"""
+ import sys
import xml.dom
***************
*** 795,799 ****
def __repr__(self):
! return "<DOM Element: %s at %#x>" % (self.tagName, id(self))
def writexml(self, writer, indent="", addindent="", newl=""):
--- 796,803 ----
def __repr__(self):
! # On some systems (RH10) id() can be a negative number.
! # work around this.
! MAX = 2L*sys.maxint+1
! return "<DOM Element: %s at %#x>" % (self.tagName, id(self)&MAX)
def writexml(self, writer, indent="", addindent="", newl=""):
More information about the Python-checkins
mailing list