changeset 6931 | 0af44a38fe41 |
parent 6854 | ffc982faa264 |
parent 6913 | ab85124dc0eb |
child 7140 | ba51dac1115d |
--- a/utils.py Mon Jan 24 19:09:42 2011 +0100 +++ b/utils.py Tue Feb 01 11:52:10 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