Skip to content

Commit

Permalink
Fix get_pypi_packages for new requirements-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhunner committed Apr 4, 2014
1 parent cdb57e2 commit dd6a446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep438/core.py
Expand Up @@ -30,7 +30,7 @@ def get_urls(package_name):

def get_pypi_packages(fileobj):
"""Return all PyPI-hosted packages from file-like object"""
return [p['name'] for p in parse(fileobj) if not p.get('uri')]
return [p['name'] for p in parse(fileobj) if not p['uri']]


def get_pypi_user_packages(user):
Expand Down

0 comments on commit dd6a446

Please sign in to comment.