diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-25 20:36:00 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-25 20:36:00 (GMT) |
commit | 465e60e654732b3a0b726d1fd82950fc982fcba2 (patch) | |
tree | 25a1567d99855ff0a2ffcdc1f7c7659f85aaaa0b /Lib/xml/dom/minidom.py | |
parent | 54701f303fdde38c53811776ba2d16fabf219dcc (diff) | |
download | cpython-465e60e654732b3a0b726d1fd82950fc982fcba2.zip cpython-465e60e654732b3a0b726d1fd82950fc982fcba2.tar.gz cpython-465e60e654732b3a0b726d1fd82950fc982fcba2.tar.bz2 |
Issue #22033: Reprs of most Python implemened classes now contain actual
class name instead of hardcoded one.
Diffstat (limited to 'Lib/xml/dom/minidom.py')
-rw-r--r-- | Lib/xml/dom/minidom.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index c379a33..c76b14d 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -648,9 +648,10 @@ class TypeInfo(object): def __repr__(self): if self.namespace: - return "<TypeInfo %r (from %r)>" % (self.name, self.namespace) + return "<%s %r (from %r)>" % (self.__class__.__name__, self.name, + self.namespace) else: - return "<TypeInfo %r>" % self.name + return "<%s %r>" % (self.__class__.__name__, self.name) def _get_name(self): return self.name |