summaryrefslogtreecommitdiff
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
commitb2de6be25d76043bbff9dd3ae77f2ca8f0e24f49 (patch)
treef5cf81a50f129ed4a7f2bfa4500cf19ee9bb87dd
parent037fe09cae0333a48a272b0d10e0e253a53219cb (diff)
downloadpylint-b2de6be25d76043bbff9dd3ae77f2ca8f0e24f49.tar.gz
Add a comment regarding the nodes we're not interested into.
-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 cdf02ea..493021f 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]: