mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
Update some www.unicode.org URLs to use HTTPS. (GH-18912)
This commit is contained in:
parent
051b9d08d1
commit
51796e5d26
8 changed files with 14 additions and 14 deletions
|
@ -893,9 +893,9 @@ def open_data(template, version):
|
|||
import urllib.request
|
||||
if version == '3.2.0':
|
||||
# irregular url structure
|
||||
url = ('http://www.unicode.org/Public/3.2-Update/'+template) % ('-'+version,)
|
||||
url = ('https://www.unicode.org/Public/3.2-Update/'+template) % ('-'+version,)
|
||||
else:
|
||||
url = ('http://www.unicode.org/Public/%s/ucd/'+template) % (version, '')
|
||||
url = ('https://www.unicode.org/Public/%s/ucd/'+template) % (version, '')
|
||||
os.makedirs(DATA_DIR, exist_ok=True)
|
||||
urllib.request.urlretrieve(url, filename=local)
|
||||
if local.endswith('.txt'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue