summaryrefslogtreecommitdiffstats
path: root/Lib/abc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-22 12:00:37 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-22 12:00:37 (GMT)
commit521e5860a5c121700e6ccc5f07053d21b83652df (patch)
tree242d90c511e3fbe9f2c09073429351ab02bd7693 /Lib/abc.py
parentc09e9752c689338efff252408f38a77683a12cb4 (diff)
downloadcpython-521e5860a5c121700e6ccc5f07053d21b83652df.zip
cpython-521e5860a5c121700e6ccc5f07053d21b83652df.tar.gz
cpython-521e5860a5c121700e6ccc5f07053d21b83652df.tar.bz2
Issue #22032: __qualname__ instead of __name__ is now always used to format
fully qualified class names of Python implemented classes.
Diffstat (limited to 'Lib/abc.py')
-rw-r--r--Lib/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/abc.py b/Lib/abc.py
index 0358a46..1cbf96a 100644
--- a/Lib/abc.py
+++ b/Lib/abc.py
@@ -168,7 +168,7 @@ class ABCMeta(type):
def _dump_registry(cls, file=None):
"""Debug helper to print the ABC registry."""
- print("Class: %s.%s" % (cls.__module__, cls.__name__), file=file)
+ print("Class: %s.%s" % (cls.__module__, cls.__qualname__), file=file)
print("Inv.counter: %s" % ABCMeta._abc_invalidation_counter, file=file)
for name in sorted(cls.__dict__.keys()):
if name.startswith("_abc_"):