mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 03:55:22 +00:00
styling: pep8
This commit is contained in:
parent
0f622de27c
commit
9035a2eb5b
@ -38,7 +38,8 @@ def get_all_imports(path):
|
||||
candidates += [os.path.splitext(fn)[0] for fn in files]
|
||||
for file_name in files:
|
||||
with open(os.path.join(root, file_name), "r") as f:
|
||||
lines = filter(filter_line, map(lambda l: l.partition("#")[0].strip(), f))
|
||||
lines = filter(
|
||||
filter_line, map(lambda l: l.partition("#")[0].strip(), f))
|
||||
for line in lines:
|
||||
if "(" in line:
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user