diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 15:00:37 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 15:00:37 +0300 |
commit | 0996f49983c7463bd31595c0e2e2aa9995d62970 (patch) | |
tree | b01f5e00097ff20b8445e9219eb6f185b478fb9c /Lib/codecs.py | |
parent | e3720ea8727fa1135ff90a1fb2fec0a63bcb8f8b (diff) | |
download | cpython-0996f49983c7463bd31595c0e2e2aa9995d62970.tar.gz |
Issue #22032: __qualname__ instead of __name__ is now always used to format
fully qualified class names of Python implemented classes.
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r-- | Lib/codecs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index c2065dafa2..993451711a 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -99,8 +99,8 @@ class CodecInfo(tuple): return self def __repr__(self): - return "<%s.%s object for encoding %s at 0x%x>" % \ - (self.__class__.__module__, self.__class__.__name__, + return "<%s.%s object for encoding %s at %#x>" % \ + (self.__class__.__module__, self.__class__.__qualname__, self.name, id(self)) class Codec: |