diff options
author | Meador Inge <meadori@gmail.com> | 2011-12-11 22:37:31 -0600 |
---|---|---|
committer | Meador Inge <meadori@gmail.com> | 2011-12-11 22:37:31 -0600 |
commit | ff7f64ca0ee65ebb4db34132977da00b318c307c (patch) | |
tree | 61d8559907d1d0d8d8e2d0d4113f9bf27a30c142 /Lib/functools.py | |
parent | bf6e560d0ccbe6bee4d835a15a8e8e098b9c7ef6 (diff) | |
download | cpython-git-ff7f64ca0ee65ebb4db34132977da00b318c307c.tar.gz |
Issue #13544: Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.
Patch by Filip GruszczyĆski.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r-- | Lib/functools.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index 1abb37a8c8..092b1ab868 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -21,7 +21,8 @@ except: # update_wrapper() and wraps() are tools to help write # wrapper functions that can handle naive introspection -WRAPPER_ASSIGNMENTS = ('__module__', '__name__', '__doc__', '__annotations__') +WRAPPER_ASSIGNMENTS = ('__module__', '__name__', '__qualname__', '__doc__', + '__annotations__') WRAPPER_UPDATES = ('__dict__',) def update_wrapper(wrapper, wrapped, |