Pass freeze() kwargs directly

This commit is contained in:
Stéphane Bidoul 2021-01-02 13:46:55 +01:00
parent 93a51f1de3
commit e76eadc9d6
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with 2 additions and 4 deletions

View File

@ -93,7 +93,7 @@ class FreezeCommand(Command):
issue=9069,
)
freeze_kwargs = dict(
for line in freeze(
requirement=options.requirements,
find_links=options.find_links,
local_only=options.local,
@ -102,8 +102,6 @@ class FreezeCommand(Command):
isolated=options.isolated_mode,
skip=skip,
exclude_editable=options.exclude_editable,
)
for line in freeze(**freeze_kwargs):
):
sys.stdout.write(line + '\n')
return SUCCESS