diff options
| author | Raymond Hettinger <python@rcn.com> | 2014-08-10 10:41:52 -0700 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2014-08-10 10:41:52 -0700 |
| commit | d4cc49f5f367f488379150588d07c7f77dc917e5 (patch) | |
| tree | 97b4a85c63fe35d488668f2f3d9652231431a572 /Lib/xml/etree/ElementTree.py | |
| parent | 9aebd07ac628842838a281dad04c891c410b0396 (diff) | |
| parent | 7f8878040c398fac32114fb7072cfabf7f7f3fa6 (diff) | |
| download | cpython-d4cc49f5f367f488379150588d07c7f77dc917e5.tar.gz | |
merge
Diffstat (limited to 'Lib/xml/etree/ElementTree.py')
| -rw-r--r-- | Lib/xml/etree/ElementTree.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index d9e98078c8..6c1345a5ad 100644 --- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -174,7 +174,7 @@ class Element: self._children = [] def __repr__(self): - return "<Element %s at 0x%x>" % (repr(self.tag), id(self)) + return "<%s %r at %#x>" % (self.__class__.__name__, self.tag, id(self)) def makeelement(self, tag, attrib): """Create a new element with the same type. @@ -509,7 +509,7 @@ class QName: def __str__(self): return self.text def __repr__(self): - return '<QName %r>' % (self.text,) + return '<%s %r>' % (self.__class__.__name__, self.text) def __hash__(self): return hash(self.text) def __le__(self, other): |
