Commit 7b5f8e13 authored by Sviatoslav Sydorenko's avatar Sviatoslav Sydorenko

Simplify `command.easy_install.expand_paths`

parent 554ded3e
...@@ -1459,12 +1459,17 @@ def expand_paths(inputs): ...@@ -1459,12 +1459,17 @@ def expand_paths(inputs):
# Yield existing non-dupe, non-import directory lines from it # Yield existing non-dupe, non-import directory lines from it
for line in lines: for line in lines:
if not line.startswith("import"): if line.startswith("import"):
continue
line = normalize_path(line.rstrip()) line = normalize_path(line.rstrip())
if line not in seen: if line in seen:
continue
seen[line] = 1 seen[line] = 1
if not os.path.isdir(line): if not os.path.isdir(line):
continue continue
yield line, os.listdir(line) yield line, os.listdir(line)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment