mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Ignore possible discrepancies between dir(x) and x.__dict__ (PY-19349)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user