From ff03d7d32ace82897eef8b72fbe56de95c96ffd5 Mon Sep 17 00:00:00 2001 From: Jeff Tratner Date: Tue, 20 Mar 2018 09:00:21 -0700 Subject: [PATCH] Still check warehouse API for new pypi --- pipenv/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index 5aa43e16..ca583ee9 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -462,7 +462,8 @@ def resolve_deps( else: markers = markers_lookup.get(result.name) collected_hashes = [] - if 'python.org' in '|'.join([source['url'] for source in sources]): + if any('python.org' in source['url'] or 'pypi.org' in source['url'] + for source in sources): try: # Grab the hashes from the new warehouse API. r = requests.get(