summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Shea <dshea@redhat.com>2014-07-07 10:45:57 -0400
committerDavid Shea <dshea@redhat.com>2014-07-07 10:45:57 -0400
commiteef3e13af5c0e6fcfea055e7162e4e11b0ba3365 (patch)
tree2fabe952d2ee53586a67ad87be3ea9326a2f52ac
parent2a45373090e129807c45c4b7d9eb35a4ea94f117 (diff)
downloadpylint-eef3e13af5c0e6fcfea055e7162e4e11b0ba3365.tar.gz
Correct the use of root()
-rw-r--r--checkers/typecheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/typecheck.py b/checkers/typecheck.py
index f0c8034..d3a1aae 100644
--- a/checkers/typecheck.py
+++ b/checkers/typecheck.py
@@ -558,7 +558,7 @@ accessed. Python regular expressions are accepted.'}
if not getitem.parent:
return
- if getitem.root() != BUILTINS:
+ if getitem.root().name != BUILTINS:
return
if getitem.parent.name not in sequence_types: