summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2009-03-17 20:45:01 +0100
committerSylvain <syt@logilab.fr>2009-03-17 20:45:01 +0100
commit915bf8b0f6bb5e74e68e4aa04226057f36c31f98 (patch)
tree290212ab007c4618641e40696fa2a3a7aef2b58a /checkers/variables.py
parentc5d49a17459a0ba089c7997b6e0e508960e79a4a (diff)
downloadpylint-915bf8b0f6bb5e74e68e4aa04226057f36c31f98.tar.gz
simply test using isinstance...
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index c5e7146..cf9509a 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -41,8 +41,7 @@ def overridden_method(klass, name):
# We have found an ancestor defining <name> but it's not in the local
# dictionary. This may happen with astng built from living objects.
return None
- # check its a method
- if getattr(meth_node.args, 'args', None) is not None:
+ if isinstance(meth_node, Function):
return meth_node
return None