Show More
@@ -662,10 +662,8 b' class Inspector:' | |||||
662 | # from its __call__ method. |
|
662 | # from its __call__ method. | |
663 |
|
663 | |||
664 | if inspect.isclass(obj): |
|
664 | if inspect.isclass(obj): | |
665 | try: |
|
665 | # Old-style classes need not have an __init__ | |
666 |
|
|
666 | callable_obj = getattr(obj, "__init__", None) | |
667 | except AttributeError: |
|
|||
668 | callable_obj = None |
|
|||
669 | elif callable(obj): |
|
667 | elif callable(obj): | |
670 | callable_obj = obj |
|
668 | callable_obj = obj | |
671 | else: |
|
669 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now