diff -r b61b844f2dad -r ab85124dc0eb utils.py --- 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