Skip to content

Commit 062ea58

Browse files
author
SAKATA Sinji
committed
Support dynamic updating #2
1 parent 1bd9d0e commit 062ea58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonbrew/downloader.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ def get_pythonbrew_update_url(version):
2828
return PYTHONBREW_UPDATE_URL_PYPI % (version)
2929

3030
def get_python_version_url(version):
31-
return PYTHON_VERSION_URL.get(version)
31+
url = PYTHON_VERSION_URL.get(version)
32+
if not url:
33+
url = "http://www.python.org/ftp/python/%s/Python-%s.tgz" % (version, version)
34+
return url

0 commit comments

Comments
 (0)