mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Revert __repr__ change
This commit is contained in:
parent
c612744439
commit
b0a91293f0
1 changed files with 1 additions and 1 deletions
|
|
@ -900,7 +900,7 @@ def getElementsByTagNameNS(self, namespaceURI, localName):
|
|||
self, namespaceURI, localName, NodeList())
|
||||
|
||||
def __repr__(self):
|
||||
return f"<DOM Element: {self.tagName}>"
|
||||
return "<DOM Element: %s at %#x>" % (self.tagName, id(self))
|
||||
|
||||
def writexml(self, writer, indent="", addindent="", newl=""):
|
||||
"""Write an XML element to a file-like object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue