branch | stable |
changeset 6913 | ab85124dc0eb |
parent 6684 | b8bd0ecced2e |
child 6931 | 0af44a38fe41 |
--- a/utils.py Fri Jan 28 11:08:31 2011 +0100 +++ b/utils.py Fri Jan 28 15:11:26 2011 +0100 @@ -67,6 +67,8 @@ def support_args(callable, *argnames): """return true if the callable support given argument names""" + if isinstance(callable, type): + callable = callable.__init__ argspec = getargspec(callable) if argspec[2]: return True