diff options
| author | Phillip J. Eby <pje@telecommunity.com> | 2006-03-28 00:07:24 +0000 |
|---|---|---|
| committer | Phillip J. Eby <pje@telecommunity.com> | 2006-03-28 00:07:24 +0000 |
| commit | 35fd142435a5123d3ce740d14068034dab9ee5ec (patch) | |
| tree | 6c1305021901f50654997d506c8f11c1d3bfec3e /Lib/contextlib.py | |
| parent | d207b4f3767673a8cb54a20de26e4c10235fb78c (diff) | |
| download | cpython-git-35fd142435a5123d3ce740d14068034dab9ee5ec.tar.gz | |
Fix contextlib not copying function attributes
Diffstat (limited to 'Lib/contextlib.py')
| -rw-r--r-- | Lib/contextlib.py | 1 |
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 |
