mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix misunderstanding of how booleans work
This commit is contained in:
parent
3cab2f150c
commit
ea888e038b
1 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,8 @@ class Crawler(BaseClient):
|
||||||
"""
|
"""
|
||||||
self._mirrors_used.add(self.index_url)
|
self._mirrors_used.add(self.index_url)
|
||||||
index_url = self._mirrors.pop()
|
index_url = self._mirrors.pop()
|
||||||
if not ("http://" or "https://" or "file://") in index_url:
|
# XXX use urllib.parse for a real check of missing scheme part
|
||||||
|
if not index_url.startswith(("http://", "https://", "file://")):
|
||||||
index_url = "http://%s" % index_url
|
index_url = "http://%s" % index_url
|
||||||
|
|
||||||
if not index_url.endswith("/simple"):
|
if not index_url.endswith("/simple"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue