diff options
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/pyreverse/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/pyreverse/utils.py b/pylint/pyreverse/utils.py index 9609ad0..90e973d 100644 --- a/pylint/pyreverse/utils.py +++ b/pylint/pyreverse/utils.py @@ -203,7 +203,7 @@ class LocalsVisitor(ASTWalker): methods = self.get_callbacks(node) if methods[0] is not None: methods[0](node) - if 'locals' in node.__dict__: # skip Instance and other proxy + if hasattr(node, 'locals'): # skip Instance and other proxy for local_node in node.values(): self.visit(local_node) if methods[1] is not None: |