mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +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]
|
candidates += [os.path.splitext(fn)[0] for fn in files]
|
||||||
for file_name in files:
|
for file_name in files:
|
||||||
with open(os.path.join(root, file_name), "r") as f:
|
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:
|
for line in lines:
|
||||||
if "(" in line:
|
if "(" in line:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user