[Python-modules-commits] r32157 - in packages/django-countries/trunk/debian/patches (2 files)
fladi-guest at users.alioth.debian.org
fladi-guest at users.alioth.debian.org
Thu Apr 2 17:16:08 UTC 2015
Date: Thursday, April 2, 2015 @ 17:16:07
Author: fladi-guest
Revision: 32157
Refresh patches.
Modified:
packages/django-countries/trunk/debian/patches/dont_include_flag_icons.patch
packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch
Modified: packages/django-countries/trunk/debian/patches/dont_include_flag_icons.patch
===================================================================
--- packages/django-countries/trunk/debian/patches/dont_include_flag_icons.patch 2015-04-02 17:15:47 UTC (rev 32156)
+++ packages/django-countries/trunk/debian/patches/dont_include_flag_icons.patch 2015-04-02 17:16:07 UTC (rev 32157)
@@ -7,7 +7,7 @@
--- a/setup.py
+++ b/setup.py
-@@ -26,7 +26,7 @@
+@@ -27,7 +27,7 @@
url='https://github.com/SmileyChris/django-countries/',
packages=find_packages(),
zip_safe=False,
Modified: packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch
===================================================================
--- packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch 2015-04-02 17:15:47 UTC (rev 32156)
+++ packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch 2015-04-02 17:16:07 UTC (rev 32157)
@@ -11,7 +11,7 @@
--- a/django_countries/data.py
+++ b/django_countries/data.py
-@@ -3,6 +3,7 @@
+@@ -18,6 +18,7 @@
from __future__ import unicode_literals
import glob
import os
@@ -19,9 +19,9 @@
try:
from django.utils.translation import ugettext_lazy as _
-@@ -10,258 +11,277 @@
- # Allows this module to be executed without Django installed.
- _ = lambda x: x
+@@ -42,510 +43,530 @@
+ "VN": _("Vietnam"),
+ }
-# Nicely titled (and translatable) country names.
-COUNTRIES = {
@@ -51,7 +51,7 @@
- "BJ": _("Benin"),
- "BM": _("Bermuda"),
- "BT": _("Bhutan"),
-- "BO": _("Bolivia, Plurinational State of"),
+- "BO": _("Bolivia (Plurinational State of)"),
- "BQ": _("Bonaire, Sint Eustatius and Saba"),
- "BA": _("Bosnia and Herzegovina"),
- "BW": _("Botswana"),
@@ -62,10 +62,10 @@
- "BG": _("Bulgaria"),
- "BF": _("Burkina Faso"),
- "BI": _("Burundi"),
+- "CV": _("Cabo Verde"),
- "KH": _("Cambodia"),
- "CM": _("Cameroon"),
- "CA": _("Canada"),
-- "CV": _("Cape Verde"),
- "KY": _("Cayman Islands"),
- "CF": _("Central African Republic"),
- "TD": _("Chad"),
@@ -75,8 +75,8 @@
- "CC": _("Cocos (Keeling) Islands"),
- "CO": _("Colombia"),
- "KM": _("Comoros"),
+- "CD": _("Congo (the Democratic Republic of the)"),
- "CG": _("Congo"),
-- "CD": _("Congo (the Democratic Republic of the)"),
- "CK": _("Cook Islands"),
- "CR": _("Costa Rica"),
- "CI": _("Côte d'Ivoire"),
@@ -105,7 +105,7 @@
- "PF": _("French Polynesia"),
- "TF": _("French Southern Territories"),
- "GA": _("Gabon"),
-- "GM": _("Gambia (The)"),
+- "GM": _("Gambia"),
- "GE": _("Georgia"),
- "DE": _("Germany"),
- "GH": _("Ghana"),
@@ -122,14 +122,14 @@
- "GY": _("Guyana"),
- "HT": _("Haiti"),
- "HM": _("Heard Island and McDonald Islands"),
-- "VA": _("Holy See [Vatican City State]"),
+- "VA": _("Holy See"),
- "HN": _("Honduras"),
- "HK": _("Hong Kong"),
- "HU": _("Hungary"),
- "IS": _("Iceland"),
- "IN": _("India"),
- "ID": _("Indonesia"),
-- "IR": _("Iran (the Islamic Republic of)"),
+- "IR": _("Iran (Islamic Republic of)"),
- "IQ": _("Iraq"),
- "IE": _("Ireland"),
- "IM": _("Isle of Man"),
@@ -169,7 +169,7 @@
- "MU": _("Mauritius"),
- "YT": _("Mayotte"),
- "MX": _("Mexico"),
-- "FM": _("Micronesia (the Federated States of)"),
+- "FM": _("Micronesia (Federated States of)"),
- "MD": _("Moldova (the Republic of)"),
- "MC": _("Monaco"),
- "MN": _("Mongolia"),
@@ -259,13 +259,13 @@
- "UG": _("Uganda"),
- "UA": _("Ukraine"),
- "AE": _("United Arab Emirates"),
-- "GB": _("United Kingdom"),
-- "US": _("United States"),
+- "GB": _("United Kingdom of Great Britain and Northern Ireland"),
- "UM": _("United States Minor Outlying Islands"),
+- "US": _("United States of America"),
- "UY": _("Uruguay"),
- "UZ": _("Uzbekistan"),
- "VU": _("Vanuatu"),
-- "VE": _("Venezuela, Bolivarian Republic of"),
+- "VE": _("Venezuela (Bolivarian Republic of)"),
- "VN": _("Viet Nam"),
- "VG": _("Virgin Islands (British)"),
- "VI": _("Virgin Islands (U.S.)"),
@@ -276,7 +276,258 @@
- "ZW": _("Zimbabwe"),
-}
+ISO_XML_PATH = '/usr/share/xml/iso-codes/iso_3166.xml'
-+
+
+-ALT_CODES = {
+- "AF": ("AFG", 4),
+- "AX": ("ALA", 248),
+- "AL": ("ALB", 8),
+- "DZ": ("DZA", 12),
+- "AS": ("ASM", 16),
+- "AD": ("AND", 20),
+- "AO": ("AGO", 24),
+- "AI": ("AIA", 660),
+- "AQ": ("ATA", 10),
+- "AG": ("ATG", 28),
+- "AR": ("ARG", 32),
+- "AM": ("ARM", 51),
+- "AW": ("ABW", 533),
+- "AU": ("AUS", 36),
+- "AT": ("AUT", 40),
+- "AZ": ("AZE", 31),
+- "BS": ("BHS", 44),
+- "BH": ("BHR", 48),
+- "BD": ("BGD", 50),
+- "BB": ("BRB", 52),
+- "BY": ("BLR", 112),
+- "BE": ("BEL", 56),
+- "BZ": ("BLZ", 84),
+- "BJ": ("BEN", 204),
+- "BM": ("BMU", 60),
+- "BT": ("BTN", 64),
+- "BO": ("BOL", 68),
+- "BQ": ("BES", 535),
+- "BA": ("BIH", 70),
+- "BW": ("BWA", 72),
+- "BV": ("BVT", 74),
+- "BR": ("BRA", 76),
+- "IO": ("IOT", 86),
+- "BN": ("BRN", 96),
+- "BG": ("BGR", 100),
+- "BF": ("BFA", 854),
+- "BI": ("BDI", 108),
+- "CV": ("CPV", 132),
+- "KH": ("KHM", 116),
+- "CM": ("CMR", 120),
+- "CA": ("CAN", 124),
+- "KY": ("CYM", 136),
+- "CF": ("CAF", 140),
+- "TD": ("TCD", 148),
+- "CL": ("CHL", 152),
+- "CN": ("CHN", 156),
+- "CX": ("CXR", 162),
+- "CC": ("CCK", 166),
+- "CO": ("COL", 170),
+- "KM": ("COM", 174),
+- "CD": ("COD", 180),
+- "CG": ("COG", 178),
+- "CK": ("COK", 184),
+- "CR": ("CRI", 188),
+- "CI": ("CIV", 384),
+- "HR": ("HRV", 191),
+- "CU": ("CUB", 192),
+- "CW": ("CUW", 531),
+- "CY": ("CYP", 196),
+- "CZ": ("CZE", 203),
+- "DK": ("DNK", 208),
+- "DJ": ("DJI", 262),
+- "DM": ("DMA", 212),
+- "DO": ("DOM", 214),
+- "EC": ("ECU", 218),
+- "EG": ("EGY", 818),
+- "SV": ("SLV", 222),
+- "GQ": ("GNQ", 226),
+- "ER": ("ERI", 232),
+- "EE": ("EST", 233),
+- "ET": ("ETH", 231),
+- "FK": ("FLK", 238),
+- "FO": ("FRO", 234),
+- "FJ": ("FJI", 242),
+- "FI": ("FIN", 246),
+- "FR": ("FRA", 250),
+- "GF": ("GUF", 254),
+- "PF": ("PYF", 258),
+- "TF": ("ATF", 260),
+- "GA": ("GAB", 266),
+- "GM": ("GMB", 270),
+- "GE": ("GEO", 268),
+- "DE": ("DEU", 276),
+- "GH": ("GHA", 288),
+- "GI": ("GIB", 292),
+- "GR": ("GRC", 300),
+- "GL": ("GRL", 304),
+- "GD": ("GRD", 308),
+- "GP": ("GLP", 312),
+- "GU": ("GUM", 316),
+- "GT": ("GTM", 320),
+- "GG": ("GGY", 831),
+- "GN": ("GIN", 324),
+- "GW": ("GNB", 624),
+- "GY": ("GUY", 328),
+- "HT": ("HTI", 332),
+- "HM": ("HMD", 334),
+- "VA": ("VAT", 336),
+- "HN": ("HND", 340),
+- "HK": ("HKG", 344),
+- "HU": ("HUN", 348),
+- "IS": ("ISL", 352),
+- "IN": ("IND", 356),
+- "ID": ("IDN", 360),
+- "IR": ("IRN", 364),
+- "IQ": ("IRQ", 368),
+- "IE": ("IRL", 372),
+- "IM": ("IMN", 833),
+- "IL": ("ISR", 376),
+- "IT": ("ITA", 380),
+- "JM": ("JAM", 388),
+- "JP": ("JPN", 392),
+- "JE": ("JEY", 832),
+- "JO": ("JOR", 400),
+- "KZ": ("KAZ", 398),
+- "KE": ("KEN", 404),
+- "KI": ("KIR", 296),
+- "KP": ("PRK", 408),
+- "KR": ("KOR", 410),
+- "KW": ("KWT", 414),
+- "KG": ("KGZ", 417),
+- "LA": ("LAO", 418),
+- "LV": ("LVA", 428),
+- "LB": ("LBN", 422),
+- "LS": ("LSO", 426),
+- "LR": ("LBR", 430),
+- "LY": ("LBY", 434),
+- "LI": ("LIE", 438),
+- "LT": ("LTU", 440),
+- "LU": ("LUX", 442),
+- "MO": ("MAC", 446),
+- "MK": ("MKD", 807),
+- "MG": ("MDG", 450),
+- "MW": ("MWI", 454),
+- "MY": ("MYS", 458),
+- "MV": ("MDV", 462),
+- "ML": ("MLI", 466),
+- "MT": ("MLT", 470),
+- "MH": ("MHL", 584),
+- "MQ": ("MTQ", 474),
+- "MR": ("MRT", 478),
+- "MU": ("MUS", 480),
+- "YT": ("MYT", 175),
+- "MX": ("MEX", 484),
+- "FM": ("FSM", 583),
+- "MD": ("MDA", 498),
+- "MC": ("MCO", 492),
+- "MN": ("MNG", 496),
+- "ME": ("MNE", 499),
+- "MS": ("MSR", 500),
+- "MA": ("MAR", 504),
+- "MZ": ("MOZ", 508),
+- "MM": ("MMR", 104),
+- "NA": ("NAM", 516),
+- "NR": ("NRU", 520),
+- "NP": ("NPL", 524),
+- "NL": ("NLD", 528),
+- "NC": ("NCL", 540),
+- "NZ": ("NZL", 554),
+- "NI": ("NIC", 558),
+- "NE": ("NER", 562),
+- "NG": ("NGA", 566),
+- "NU": ("NIU", 570),
+- "NF": ("NFK", 574),
+- "MP": ("MNP", 580),
+- "NO": ("NOR", 578),
+- "OM": ("OMN", 512),
+- "PK": ("PAK", 586),
+- "PW": ("PLW", 585),
+- "PS": ("PSE", 275),
+- "PA": ("PAN", 591),
+- "PG": ("PNG", 598),
+- "PY": ("PRY", 600),
+- "PE": ("PER", 604),
+- "PH": ("PHL", 608),
+- "PN": ("PCN", 612),
+- "PL": ("POL", 616),
+- "PT": ("PRT", 620),
+- "PR": ("PRI", 630),
+- "QA": ("QAT", 634),
+- "RE": ("REU", 638),
+- "RO": ("ROU", 642),
+- "RU": ("RUS", 643),
+- "RW": ("RWA", 646),
+- "BL": ("BLM", 652),
+- "SH": ("SHN", 654),
+- "KN": ("KNA", 659),
+- "LC": ("LCA", 662),
+- "MF": ("MAF", 663),
+- "PM": ("SPM", 666),
+- "VC": ("VCT", 670),
+- "WS": ("WSM", 882),
+- "SM": ("SMR", 674),
+- "ST": ("STP", 678),
+- "SA": ("SAU", 682),
+- "SN": ("SEN", 686),
+- "RS": ("SRB", 688),
+- "SC": ("SYC", 690),
+- "SL": ("SLE", 694),
+- "SG": ("SGP", 702),
+- "SX": ("SXM", 534),
+- "SK": ("SVK", 703),
+- "SI": ("SVN", 705),
+- "SB": ("SLB", 90),
+- "SO": ("SOM", 706),
+- "ZA": ("ZAF", 710),
+- "GS": ("SGS", 239),
+- "SS": ("SSD", 728),
+- "ES": ("ESP", 724),
+- "LK": ("LKA", 144),
+- "SD": ("SDN", 729),
+- "SR": ("SUR", 740),
+- "SJ": ("SJM", 744),
+- "SZ": ("SWZ", 748),
+- "SE": ("SWE", 752),
+- "CH": ("CHE", 756),
+- "SY": ("SYR", 760),
+- "TW": ("TWN", 158),
+- "TJ": ("TJK", 762),
+- "TZ": ("TZA", 834),
+- "TH": ("THA", 764),
+- "TL": ("TLS", 626),
+- "TG": ("TGO", 768),
+- "TK": ("TKL", 772),
+- "TO": ("TON", 776),
+- "TT": ("TTO", 780),
+- "TN": ("TUN", 788),
+- "TR": ("TUR", 792),
+- "TM": ("TKM", 795),
+- "TC": ("TCA", 796),
+- "TV": ("TUV", 798),
+- "UG": ("UGA", 800),
+- "UA": ("UKR", 804),
+- "AE": ("ARE", 784),
+- "GB": ("GBR", 826),
+- "UM": ("UMI", 581),
+- "US": ("USA", 840),
+- "UY": ("URY", 858),
+- "UZ": ("UZB", 860),
+- "VU": ("VUT", 548),
+- "VE": ("VEN", 862),
+- "VN": ("VNM", 704),
+- "VG": ("VGB", 92),
+- "VI": ("VIR", 850),
+- "WF": ("WLF", 876),
+- "EH": ("ESH", 732),
+- "YE": ("YEM", 887),
+- "ZM": ("ZMB", 894),
+- "ZW": ("ZWE", 716),
+-}
+try:
+ from django.conf import settings
+except ImportError:
@@ -290,9 +541,11 @@
+# and names.
+if os.path.isfile(ISO_XML_PATH):
+ COUNTRIES = {}
++ ALT_CODES = {}
+ for node in sorted(parse(ISO_XML_PATH).getElementsByTagName('iso_3166_entry'),
+ key=lambda node: node.getAttribute('name')):
+ COUNTRIES[node.getAttribute('alpha_2_code')] = _(node.getAttribute('name'))
++ ALT_CODES[node.getAttribute('alpha_2_code')] = (node.getAttribute('alpha_3_code'), int(node.getAttribute('numeric_code')))
+else:
+ # Nicely titled (and translatable) country names.
+ COUNTRIES = {
@@ -322,7 +575,7 @@
+ "BJ": _("Benin"),
+ "BM": _("Bermuda"),
+ "BT": _("Bhutan"),
-+ "BO": _("Bolivia, Plurinational State of"),
++ "BO": _("Bolivia (Plurinational State of)"),
+ "BQ": _("Bonaire, Sint Eustatius and Saba"),
+ "BA": _("Bosnia and Herzegovina"),
+ "BW": _("Botswana"),
@@ -333,10 +586,10 @@
+ "BG": _("Bulgaria"),
+ "BF": _("Burkina Faso"),
+ "BI": _("Burundi"),
++ "CV": _("Cabo Verde"),
+ "KH": _("Cambodia"),
+ "CM": _("Cameroon"),
+ "CA": _("Canada"),
-+ "CV": _("Cape Verde"),
+ "KY": _("Cayman Islands"),
+ "CF": _("Central African Republic"),
+ "TD": _("Chad"),
@@ -346,8 +599,8 @@
+ "CC": _("Cocos (Keeling) Islands"),
+ "CO": _("Colombia"),
+ "KM": _("Comoros"),
++ "CD": _("Congo (the Democratic Republic of the)"),
+ "CG": _("Congo"),
-+ "CD": _("Congo (the Democratic Republic of the)"),
+ "CK": _("Cook Islands"),
+ "CR": _("Costa Rica"),
+ "CI": _("Côte d'Ivoire"),
@@ -376,7 +629,7 @@
+ "PF": _("French Polynesia"),
+ "TF": _("French Southern Territories"),
+ "GA": _("Gabon"),
-+ "GM": _("Gambia (The)"),
++ "GM": _("Gambia"),
+ "GE": _("Georgia"),
+ "DE": _("Germany"),
+ "GH": _("Ghana"),
@@ -393,14 +646,14 @@
+ "GY": _("Guyana"),
+ "HT": _("Haiti"),
+ "HM": _("Heard Island and McDonald Islands"),
-+ "VA": _("Holy See [Vatican City State]"),
++ "VA": _("Holy See"),
+ "HN": _("Honduras"),
+ "HK": _("Hong Kong"),
+ "HU": _("Hungary"),
+ "IS": _("Iceland"),
+ "IN": _("India"),
+ "ID": _("Indonesia"),
-+ "IR": _("Iran (the Islamic Republic of)"),
++ "IR": _("Iran (Islamic Republic of)"),
+ "IQ": _("Iraq"),
+ "IE": _("Ireland"),
+ "IM": _("Isle of Man"),
@@ -440,7 +693,7 @@
+ "MU": _("Mauritius"),
+ "YT": _("Mayotte"),
+ "MX": _("Mexico"),
-+ "FM": _("Micronesia (the Federated States of)"),
++ "FM": _("Micronesia (Federated States of)"),
+ "MD": _("Moldova (the Republic of)"),
+ "MC": _("Monaco"),
+ "MN": _("Mongolia"),
@@ -530,13 +783,13 @@
+ "UG": _("Uganda"),
+ "UA": _("Ukraine"),
+ "AE": _("United Arab Emirates"),
-+ "GB": _("United Kingdom"),
-+ "US": _("United States"),
++ "GB": _("United Kingdom of Great Britain and Northern Ireland"),
+ "UM": _("United States Minor Outlying Islands"),
++ "US": _("United States of America"),
+ "UY": _("Uruguay"),
+ "UZ": _("Uzbekistan"),
+ "VU": _("Vanuatu"),
-+ "VE": _("Venezuela, Bolivarian Republic of"),
++ "VE": _("Venezuela (Bolivarian Republic of)"),
+ "VN": _("Viet Nam"),
+ "VG": _("Virgin Islands (British)"),
+ "VI": _("Virgin Islands (U.S.)"),
@@ -546,6 +799,257 @@
+ "ZM": _("Zambia"),
+ "ZW": _("Zimbabwe"),
+ }
++ ALT_CODES = {
++ "AF": ("AFG", 4),
++ "AX": ("ALA", 248),
++ "AL": ("ALB", 8),
++ "DZ": ("DZA", 12),
++ "AS": ("ASM", 16),
++ "AD": ("AND", 20),
++ "AO": ("AGO", 24),
++ "AI": ("AIA", 660),
++ "AQ": ("ATA", 10),
++ "AG": ("ATG", 28),
++ "AR": ("ARG", 32),
++ "AM": ("ARM", 51),
++ "AW": ("ABW", 533),
++ "AU": ("AUS", 36),
++ "AT": ("AUT", 40),
++ "AZ": ("AZE", 31),
++ "BS": ("BHS", 44),
++ "BH": ("BHR", 48),
++ "BD": ("BGD", 50),
++ "BB": ("BRB", 52),
++ "BY": ("BLR", 112),
++ "BE": ("BEL", 56),
++ "BZ": ("BLZ", 84),
++ "BJ": ("BEN", 204),
++ "BM": ("BMU", 60),
++ "BT": ("BTN", 64),
++ "BO": ("BOL", 68),
++ "BQ": ("BES", 535),
++ "BA": ("BIH", 70),
++ "BW": ("BWA", 72),
++ "BV": ("BVT", 74),
++ "BR": ("BRA", 76),
++ "IO": ("IOT", 86),
++ "BN": ("BRN", 96),
++ "BG": ("BGR", 100),
++ "BF": ("BFA", 854),
++ "BI": ("BDI", 108),
++ "CV": ("CPV", 132),
++ "KH": ("KHM", 116),
++ "CM": ("CMR", 120),
++ "CA": ("CAN", 124),
++ "KY": ("CYM", 136),
++ "CF": ("CAF", 140),
++ "TD": ("TCD", 148),
++ "CL": ("CHL", 152),
++ "CN": ("CHN", 156),
++ "CX": ("CXR", 162),
++ "CC": ("CCK", 166),
++ "CO": ("COL", 170),
++ "KM": ("COM", 174),
++ "CD": ("COD", 180),
++ "CG": ("COG", 178),
++ "CK": ("COK", 184),
++ "CR": ("CRI", 188),
++ "CI": ("CIV", 384),
++ "HR": ("HRV", 191),
++ "CU": ("CUB", 192),
++ "CW": ("CUW", 531),
++ "CY": ("CYP", 196),
++ "CZ": ("CZE", 203),
++ "DK": ("DNK", 208),
++ "DJ": ("DJI", 262),
++ "DM": ("DMA", 212),
++ "DO": ("DOM", 214),
++ "EC": ("ECU", 218),
++ "EG": ("EGY", 818),
++ "SV": ("SLV", 222),
++ "GQ": ("GNQ", 226),
++ "ER": ("ERI", 232),
++ "EE": ("EST", 233),
++ "ET": ("ETH", 231),
++ "FK": ("FLK", 238),
++ "FO": ("FRO", 234),
++ "FJ": ("FJI", 242),
++ "FI": ("FIN", 246),
++ "FR": ("FRA", 250),
++ "GF": ("GUF", 254),
++ "PF": ("PYF", 258),
++ "TF": ("ATF", 260),
++ "GA": ("GAB", 266),
++ "GM": ("GMB", 270),
++ "GE": ("GEO", 268),
++ "DE": ("DEU", 276),
++ "GH": ("GHA", 288),
++ "GI": ("GIB", 292),
++ "GR": ("GRC", 300),
++ "GL": ("GRL", 304),
++ "GD": ("GRD", 308),
++ "GP": ("GLP", 312),
++ "GU": ("GUM", 316),
++ "GT": ("GTM", 320),
++ "GG": ("GGY", 831),
++ "GN": ("GIN", 324),
++ "GW": ("GNB", 624),
++ "GY": ("GUY", 328),
++ "HT": ("HTI", 332),
++ "HM": ("HMD", 334),
++ "VA": ("VAT", 336),
++ "HN": ("HND", 340),
++ "HK": ("HKG", 344),
++ "HU": ("HUN", 348),
++ "IS": ("ISL", 352),
++ "IN": ("IND", 356),
++ "ID": ("IDN", 360),
++ "IR": ("IRN", 364),
++ "IQ": ("IRQ", 368),
++ "IE": ("IRL", 372),
++ "IM": ("IMN", 833),
++ "IL": ("ISR", 376),
++ "IT": ("ITA", 380),
++ "JM": ("JAM", 388),
++ "JP": ("JPN", 392),
++ "JE": ("JEY", 832),
++ "JO": ("JOR", 400),
++ "KZ": ("KAZ", 398),
++ "KE": ("KEN", 404),
++ "KI": ("KIR", 296),
++ "KP": ("PRK", 408),
++ "KR": ("KOR", 410),
++ "KW": ("KWT", 414),
++ "KG": ("KGZ", 417),
++ "LA": ("LAO", 418),
++ "LV": ("LVA", 428),
++ "LB": ("LBN", 422),
++ "LS": ("LSO", 426),
++ "LR": ("LBR", 430),
++ "LY": ("LBY", 434),
++ "LI": ("LIE", 438),
++ "LT": ("LTU", 440),
++ "LU": ("LUX", 442),
++ "MO": ("MAC", 446),
++ "MK": ("MKD", 807),
++ "MG": ("MDG", 450),
++ "MW": ("MWI", 454),
++ "MY": ("MYS", 458),
++ "MV": ("MDV", 462),
++ "ML": ("MLI", 466),
++ "MT": ("MLT", 470),
++ "MH": ("MHL", 584),
++ "MQ": ("MTQ", 474),
++ "MR": ("MRT", 478),
++ "MU": ("MUS", 480),
++ "YT": ("MYT", 175),
++ "MX": ("MEX", 484),
++ "FM": ("FSM", 583),
++ "MD": ("MDA", 498),
++ "MC": ("MCO", 492),
++ "MN": ("MNG", 496),
++ "ME": ("MNE", 499),
++ "MS": ("MSR", 500),
++ "MA": ("MAR", 504),
++ "MZ": ("MOZ", 508),
++ "MM": ("MMR", 104),
++ "NA": ("NAM", 516),
++ "NR": ("NRU", 520),
++ "NP": ("NPL", 524),
++ "NL": ("NLD", 528),
++ "NC": ("NCL", 540),
++ "NZ": ("NZL", 554),
++ "NI": ("NIC", 558),
++ "NE": ("NER", 562),
++ "NG": ("NGA", 566),
++ "NU": ("NIU", 570),
++ "NF": ("NFK", 574),
++ "MP": ("MNP", 580),
++ "NO": ("NOR", 578),
++ "OM": ("OMN", 512),
++ "PK": ("PAK", 586),
++ "PW": ("PLW", 585),
++ "PS": ("PSE", 275),
++ "PA": ("PAN", 591),
++ "PG": ("PNG", 598),
++ "PY": ("PRY", 600),
++ "PE": ("PER", 604),
++ "PH": ("PHL", 608),
++ "PN": ("PCN", 612),
++ "PL": ("POL", 616),
++ "PT": ("PRT", 620),
++ "PR": ("PRI", 630),
++ "QA": ("QAT", 634),
++ "RE": ("REU", 638),
++ "RO": ("ROU", 642),
++ "RU": ("RUS", 643),
++ "RW": ("RWA", 646),
++ "BL": ("BLM", 652),
++ "SH": ("SHN", 654),
++ "KN": ("KNA", 659),
++ "LC": ("LCA", 662),
++ "MF": ("MAF", 663),
++ "PM": ("SPM", 666),
++ "VC": ("VCT", 670),
++ "WS": ("WSM", 882),
++ "SM": ("SMR", 674),
++ "ST": ("STP", 678),
++ "SA": ("SAU", 682),
++ "SN": ("SEN", 686),
++ "RS": ("SRB", 688),
++ "SC": ("SYC", 690),
++ "SL": ("SLE", 694),
++ "SG": ("SGP", 702),
++ "SX": ("SXM", 534),
++ "SK": ("SVK", 703),
++ "SI": ("SVN", 705),
++ "SB": ("SLB", 90),
++ "SO": ("SOM", 706),
++ "ZA": ("ZAF", 710),
++ "GS": ("SGS", 239),
++ "SS": ("SSD", 728),
++ "ES": ("ESP", 724),
++ "LK": ("LKA", 144),
++ "SD": ("SDN", 729),
++ "SR": ("SUR", 740),
++ "SJ": ("SJM", 744),
++ "SZ": ("SWZ", 748),
++ "SE": ("SWE", 752),
++ "CH": ("CHE", 756),
++ "SY": ("SYR", 760),
++ "TW": ("TWN", 158),
++ "TJ": ("TJK", 762),
++ "TZ": ("TZA", 834),
++ "TH": ("THA", 764),
++ "TL": ("TLS", 626),
++ "TG": ("TGO", 768),
++ "TK": ("TKL", 772),
++ "TO": ("TON", 776),
++ "TT": ("TTO", 780),
++ "TN": ("TUN", 788),
++ "TR": ("TUR", 792),
++ "TM": ("TKM", 795),
++ "TC": ("TCA", 796),
++ "TV": ("TUV", 798),
++ "UG": ("UGA", 800),
++ "UA": ("UKR", 804),
++ "AE": ("ARE", 784),
++ "GB": ("GBR", 826),
++ "UM": ("UMI", 581),
++ "US": ("USA", 840),
++ "UY": ("URY", 858),
++ "UZ": ("UZB", 860),
++ "VU": ("VUT", 548),
++ "VE": ("VEN", 862),
++ "VN": ("VNM", 704),
++ "VG": ("VGB", 92),
++ "VI": ("VIR", 850),
++ "WF": ("WLF", 876),
++ "EH": ("ESH", 732),
++ "YE": ("YEM", 887),
++ "ZM": ("ZMB", 894),
++ "ZW": ("ZWE", 716),
++ }
- def self_generate(output_filename, filename='iso3166-1.csv'):
+ def self_generate(
More information about the Python-modules-commits
mailing list