summaryrefslogtreecommitdiff
path: root/pylint/checkers/imports.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/imports.py')
-rw-r--r--pylint/checkers/imports.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py
index 0be2b2c..59c6ed0 100644
--- a/pylint/checkers/imports.py
+++ b/pylint/checkers/imports.py
@@ -372,7 +372,7 @@ given file (report RP0402 must not be disabled)'}
# handle dependencies
importedmodnames = self.stats['dependencies'].setdefault(
importedmodname, set())
- if not context_name in importedmodnames:
+ if context_name not in importedmodnames:
importedmodnames.add(context_name)
# update import graph
mgraph = self.import_graph[context_name]