summaryrefslogtreecommitdiff
path: root/pylint/lint.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/lint.py')
-rw-r--r--pylint/lint.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pylint/lint.py b/pylint/lint.py
index 4066f8ef0..eb3aef61e 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -1425,9 +1425,7 @@ def fix_import_path(args):
changes = []
for arg in args:
path = _get_python_path(arg)
- if path in changes:
- continue
- else:
+ if path not in changes:
changes.append(path)
sys.path[:] = changes + ["."] + sys.path
try: