Skip to content

Commit

Permalink
Merge pull request #4688 from NaelsonDouglas/master
Browse files Browse the repository at this point in the history
Small refactoration removing two avoidable indexer iterator
  • Loading branch information
frostming committed May 10, 2021
2 parents 66ca25f + ccc18a6 commit e7fb099
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pipenv/vendor/pipreqs/pipreqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,8 @@ def compare_modules(file_, imports):
specified file.
"""
modules = parse_requirements(file_)

imports = [imports[i]["name"] for i in range(len(imports))]
modules = [modules[i]["name"] for i in range(len(modules))]
imports = [i["name"] for i in imports]
modules = [i["name"] for i in modules]
modules_not_imported = set(modules) - set(imports)

return modules_not_imported
Expand Down

0 comments on commit e7fb099

Please sign in to comment.