diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-26 06:30:44 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-26 06:30:44 (GMT) |
commit | b3b366d803207eb580a315a2b49733f100e92e89 (patch) | |
tree | e8949382f46c2f87806be576dc688561007c4129 /Lib/reprlib.py | |
parent | a7c0ff2f0b3883109245d6be3083aeeee8c9749c (diff) | |
download | cpython-b3b366d803207eb580a315a2b49733f100e92e89.zip cpython-b3b366d803207eb580a315a2b49733f100e92e89.tar.gz cpython-b3b366d803207eb580a315a2b49733f100e92e89.tar.bz2 |
Issue #26634: recursive_repr() now sets __qualname__ of wrapper.
Patch by Xiang Zhang.
Diffstat (limited to 'Lib/reprlib.py')
-rw-r--r-- | Lib/reprlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/reprlib.py b/Lib/reprlib.py index ecbd2cc..40d991f 100644 --- a/Lib/reprlib.py +++ b/Lib/reprlib.py @@ -30,6 +30,7 @@ def recursive_repr(fillvalue='...'): wrapper.__module__ = getattr(user_function, '__module__') wrapper.__doc__ = getattr(user_function, '__doc__') wrapper.__name__ = getattr(user_function, '__name__') + wrapper.__qualname__ = getattr(user_function, '__qualname__') wrapper.__annotations__ = getattr(user_function, '__annotations__', {}) return wrapper |