1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-07 12:21:17 +03:00

applied patch fixing #73450 Daniel

* python/generator.py: applied patch fixing #73450
Daniel
This commit is contained in:
Daniel Veillard
2002-03-05 09:36:43 +00:00
parent bcf64c0d85
commit ba5e18a3fb
2 changed files with 6 additions and 2 deletions

View File

@ -814,8 +814,8 @@ def buildWrappers():
if classes_ancestor[classname] == "xmlCore" or \
classes_ancestor[classname] == "xmlNode":
classes.write(" def __repr__(self):\n")
format = "%s:%%s" % (classname)
classes.write(" return \"%s\" %% (self.name)\n\n" % (
format = "<%s (%%s) object at 0x%%x>" % (classname)
classes.write(" return \"%s\" %% (self.name, id (self))\n\n" % (
format))
else:
txt.write("Class %s()\n" % (classname))