diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-01-31 19:28:44 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-01-31 19:28:44 (GMT) |
commit | 0860a0bd3f7859ca5786a9bb9b3c4b6c0e7a1f8d (patch) | |
tree | b2fd10620c101f89a81ca06e7b72f6daff29bec3 /Lib/inspect.py | |
parent | 28479d8c7df55584ceb23041122cfbeb6073294e (diff) | |
download | cpython-0860a0bd3f7859ca5786a9bb9b3c4b6c0e7a1f8d.zip cpython-0860a0bd3f7859ca5786a9bb9b3c4b6c0e7a1f8d.tar.gz cpython-0860a0bd3f7859ca5786a9bb9b3c4b6c0e7a1f8d.tar.bz2 |
inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly #18801
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index e6c7b5b..8de9892 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -412,7 +412,7 @@ def classify_class_attrs(cls): elif isinstance(dict_obj, property): kind = "property" obj = dict_obj - elif isfunction(obj) or ismethoddescriptor(obj): + elif isroutine(obj): kind = "method" else: kind = "data" |