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 | 521e5860a5c121700e6ccc5f07053d21b83652df (patch) | |
tree | 242d90c511e3fbe9f2c09073429351ab02bd7693 /Lib/traceback.py | |
parent | c09e9752c689338efff252408f38a77683a12cb4 (diff) | |
download | cpython-git-521e5860a5c121700e6ccc5f07053d21b83652df.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/traceback.py')
-rw-r--r-- | Lib/traceback.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index faf593a735..c1ab36ec44 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -205,7 +205,7 @@ def _format_exception_only_iter(etype, value): yield _format_final_exc_line(etype, value) return - stype = etype.__name__ + stype = etype.__qualname__ smod = etype.__module__ if smod not in ("__main__", "builtins"): stype = smod + '.' + stype |