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

Simplify `command.easy_install.expand_paths`

parent 554ded3e
...@@ -1459,13 +1459,18 @@ def expand_paths(inputs): ...@@ -1459,13 +1459,18 @@ 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"):
line = normalize_path(line.rstrip()) continue
if line not in seen:
seen[line] = 1 line = normalize_path(line.rstrip())
if not os.path.isdir(line): if line in seen:
continue continue
yield line, os.listdir(line)
seen[line] = 1
if not os.path.isdir(line):
continue
yield line, os.listdir(line)
def extract_wininst_cfg(dist_filename): def extract_wininst_cfg(dist_filename):
......
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