From ecb841019341aaac531f62ac5108ed167dbdb2b1 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Thu, 1 Sep 2011 11:40:06 +0200 Subject: Fixed a bug with __kwdefaults__ for Python 3 --- src/decorator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.1