Skip to content

Commit

Permalink
Fix missing )
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeHoen committed Jun 14, 2021
1 parent 5ff5734 commit d795713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipreqs/pipreqs.py
Expand Up @@ -171,7 +171,7 @@ 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):
Expand Down

0 comments on commit d795713

Please sign in to comment.