mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
Issue #13593: updating the importlib utility decorators for __qualname__.
This commit is contained in:
parent
c2f9874280
commit
96ff0840b6
2 changed files with 11 additions and 1 deletions
|
@ -111,7 +111,7 @@ def _write_atomic(path, data):
|
|||
|
||||
def _wrap(new, old):
|
||||
"""Simple substitute for functools.wraps."""
|
||||
for replace in ['__module__', '__name__', '__doc__']:
|
||||
for replace in ['__module__', '__name__', '__qualname__', '__doc__']:
|
||||
setattr(new, replace, getattr(old, replace))
|
||||
new.__dict__.update(old.__dict__)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue