Ignore possible discrepancies between dir(x) and x.__dict__ (PY-19349)

This commit is contained in:
Andrey Vlasovskikh
2016-06-23 16:56:10 +03:00
parent 6da337aa6b
commit 65febf2b11
@@ -684,7 +684,9 @@ class ModuleRedeclarator(object):
try:
item = getattr(p_class, item_name) # let getters do the magic
except AttributeError:
item = field_source[item_name] # have it raw
item = field_source.get(item_name) # have it raw
if item is None:
continue
except Exception:
continue
if is_callable(item) and not isinstance(item, type):