mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Fix line too long
This commit is contained in:
parent
d795713b6f
commit
6b1f8d81d6
@ -171,7 +171,8 @@ def generate_requirements_file(path, imports):
|
||||
fmt = '{name}=={version}'
|
||||
out_file.write('\n'.join(
|
||||
fmt.format(**item) if item['version'] else '{name}'.format(**item)
|
||||
for item in sorted(imports, key=lambda x: x['name'].lower())) + '\n')
|
||||
for item in sorted(imports, key=lambda x: x['name'].lower()))
|
||||
+ '\n')
|
||||
|
||||
|
||||
def output_requirements(imports):
|
||||
|
Loading…
x
Reference in New Issue
Block a user