diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2011-09-01 11:40:06 +0200 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2011-09-01 11:40:06 +0200 |
| commit | ecb841019341aaac531f62ac5108ed167dbdb2b1 (patch) | |
| tree | d6d5d0912ec80e8138475d54226c5b81a7cd4364 /src | |
| parent | 9a66b8182d25a45ba667997611c38433483b7c57 (diff) | |
| download | python-decorator-git-ecb841019341aaac531f62ac5108ed167dbdb2b1.tar.gz | |
Fixed a bug with __kwdefaults__ for Python 3
Diffstat (limited to 'src')
| -rw-r--r-- | src/decorator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decorator.py b/src/decorator.py index 67e2221..5daf10b 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -28,7 +28,7 @@ Decorator module, see http://pypi.python.org/pypi/decorator for the documentation. """ -__version__ = '3.3.1' +__version__ = '3.3.2' __all__ = ["decorator", "FunctionMaker", "partial"] @@ -127,6 +127,7 @@ class FunctionMaker(object): func.__doc__ = getattr(self, 'doc', None) func.__dict__ = getattr(self, 'dict', {}) func.func_defaults = getattr(self, 'defaults', ()) + func.__kwdefaults__ = getattr(self, 'kwonlydefaults', None) callermodule = sys._getframe(3).f_globals.get('__name__', '?') func.__module__ = getattr(self, 'module', callermodule) func.__dict__.update(kw) |
