From f384e089715f05ab7eb50cf76a95a85bb19eb1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 14 Apr 2019 17:53:01 +0200 Subject: [PATCH] Update data with pycountry-18.12.8 --- data.xml | 29 ++++++++++++++++++----------- scripts/countries.py | 4 ++-- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/data.xml b/data.xml index 87a21b5cd9..a5c083bac3 100644 --- a/data.xml +++ b/data.xml @@ -9847,7 +9847,7 @@ - Damen and Diu + Daman and Diu IN-DD union territory @@ -9973,7 +9973,7 @@ - Orissa + Odisha IN-OR state @@ -10007,6 +10007,13 @@ + + Telangana + IN-TG + state + + + Tamil Nadu IN-TN @@ -26289,9 +26296,9 @@ - + Gauteng - ZA-GP + ZA-GT province @@ -26317,6 +26324,13 @@ + + Kwazulu-Natal + ZA-NL + province + + + North-West (South Africa) ZA-NW @@ -26331,13 +26345,6 @@ - - Kwazulu-Natal - ZA-ZN - province - - - Western ZM-01 diff --git a/scripts/countries.py b/scripts/countries.py index 4765ff74da..1f9b3d137d 100755 --- a/scripts/countries.py +++ b/scripts/countries.py @@ -18,7 +18,7 @@ for country in pycountry.countries: %s \n''' % (country.alpha_2.lower(), country.name, country.alpha_2, country.alpha_3, country.numeric) - sys.stdout.write(record.encode('utf-8')) + sys.stdout.write(record) sys.stdout.write(' \n') subdivision_codes = {s.code.lower() for s in pycountry.subdivisions} @@ -48,7 +48,7 @@ while existing_parents < subdivision_codes: \n''' % subdivision.country.alpha_2.lower() - sys.stdout.write(record.encode('utf-8')) + sys.stdout.write(record) sys.stdout.write(' \n') existing_parents |= new_parents