changeset 60363ba041e2 in modules/country:default
details: https://hg.tryton.org/modules/country?cmd=changeset;node=60363ba041e2
description:
        Use SSL to download geonames zip files

        issue8415
        review287501002
diffstat:

 scripts/trytond_import_zip |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9068cd130176 -r 60363ba041e2 scripts/trytond_import_zip
--- a/scripts/trytond_import_zip        Mon May 06 15:02:48 2019 +0200
+++ b/scripts/trytond_import_zip        Wed Jun 26 22:06:39 2019 +0200
@@ -36,7 +36,7 @@
 
 def fetch(code):
     sys.stderr.write('Fetching')
-    url = 'http://download.geonames.org/export/zip/%s.zip' % code
+    url = 'https://download.geonames.org/export/zip/%s.zip' % code
     responce = urlopen(url)
     data = responce.read()
     with zipfile.ZipFile(BytesIO(data)) as zf:

Reply via email to