diff -r 6fa712e9dfa5 -r 0af44a38fe41 utils.py --- 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