Update some www.unicode.org URLs to use HTTPS. (GH-18912)

This commit is contained in:
Benjamin Peterson 2020-03-10 21:10:59 -07:00 committed by GitHub
parent 051b9d08d1
commit 51796e5d26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 14 deletions

View file

@ -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'):