Issue #13593: updating the importlib utility decorators for __qualname__.

This commit is contained in:
Meador Inge 2011-12-14 22:53:13 -06:00
parent c2f9874280
commit 96ff0840b6
2 changed files with 11 additions and 1 deletions

View file

@ -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__)