summaryrefslogtreecommitdiff
path: root/pylint/checkers/stdlib.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-09-21 13:53:39 +0000
committerClaudiu Popa <pcmanticore@gmail.com>2015-09-21 13:53:39 +0000
commit4c18296bd882e3dfa2207c77b5576af33e9cd8ac (patch)
treeb3aec1d1a7204b33ffa1443fcce33feb7c218d8b /pylint/checkers/stdlib.py
parentde81925fefd71b6ff09b8580d21cfc5abfe1dd2d (diff)
downloadpylint-git-4c18296bd882e3dfa2207c77b5576af33e9cd8ac.tar.gz
Add a comment regarding the nodes we're not interested into.
Diffstat (limited to 'pylint/checkers/stdlib.py')
-rw-r--r--pylint/checkers/stdlib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/checkers/stdlib.py b/pylint/checkers/stdlib.py
index cdf02eae5..493021fcf 100644
--- a/pylint/checkers/stdlib.py
+++ b/pylint/checkers/stdlib.py
@@ -243,11 +243,12 @@ class StdlibChecker(BaseChecker):
py_vers = sys.version_info[0]
qname = infer.qname()
- if(isinstance(node.func, astroid.Attribute)):
+ if isinstance(node.func, astroid.Attribute):
func_name = node.func.attrname
elif isinstance(node.func, astroid.Name):
func_name = node.func.name
else:
+ # Not interested in other nodes.
return
if qname in self.deprecated[0]: