summaryrefslogtreecommitdiff
path: root/Lib/contextlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/contextlib.py')
-rw-r--r--Lib/contextlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/contextlib.py b/Lib/contextlib.py
index d329087c97..9c00ef0777 100644
--- a/Lib/contextlib.py
+++ b/Lib/contextlib.py
@@ -78,6 +78,7 @@ def contextmanager(func):
try:
helper.__name__ = func.__name__
helper.__doc__ = func.__doc__
+ helper.__dict__ = func.__dict__
except:
pass
return helper