Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/stats/countrycodes.py

Issue 29345242: Noissue - Adapt quotes for compliance with our coding style in sitescripts (Closed)
Patch Set: Fixed raw string Created May 30, 2016, 8:47 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Country codes from opencountrycodes.appspot.com 1 # Country codes from opencountrycodes.appspot.com
2 2
3 countrycodes = {"af": "Afghanistan", "ax": "Aland Islands", "al": "Albania", "dz ": "Algeria", "as": "American Samoa", "ad": "Andorra", "ao": "Angola", "ai": "An guilla", "aq": "Antarctica", "ag": "Antigua and Barbuda", "ar": "Argentina", "am ": "Armenia", "aw": "Aruba", "au": "Australia", "at": "Austria", "az": "Azerbaij an", "bs": "Bahamas", "bh": "Bahrain", "bd": "Bangladesh", "bb": "Barbados", "by ": "Belarus", "be": "Belgium", "bz": "Belize", "bj": "Benin", "bm": "Bermuda", " bt": "Bhutan", "bo": "Bolivia, Plurinational State of", "bq": "Bonaire, Saint Eu statius and Saba", "ba": "Bosnia and Herzegovina", "bw": "Botswana", "bv": "Bouv et Island", "br": "Brazil", "io": "British Indian Ocean Territory", "bn": "Brune i Darussalam", "bg": "Bulgaria", "bf": "Burkina Faso", "bi": "Burundi", "kh": "C ambodia", "cm": "Cameroon", "ca": "Canada", "cv": "Cape Verde", "ky": "Cayman Is lands", "cf": "Central African Republic", "td": "Chad", "cl": "Chile", "cn": "Ch ina", "cx": "Christmas Island", "cc": "Cocos (Keeling) Islands", "co": "Colombia ", "km": "Comoros", "cg": "Congo", "cd": "Congo, The Democratic Republic of the" , "ck": "Cook Islands", "cr": "Costa Rica", "ci": "Cote D'ivoire", "hr": "Croati a", "cu": "Cuba", "cw": "Curacao", "cy": "Cyprus", "cz": "Czech Republic", "dk": "Denmark", "dj": "Djibouti", "dm": "Dominica", "do": "Dominican Republic", "ec" : "Ecuador", "eg": "Egypt", "sv": "El Salvador", "gq": "Equatorial Guinea", "er" : "Eritrea", "ee": "Estonia", "et": "Ethiopia", "fk": "Falkland Islands (Malvina s)", "fo": "Faroe Islands", "fj": "Fiji", "fi": "Finland", "fr": "France", "gf": "French Guiana", "pf": "French Polynesia", "tf": "French Southern Territories", "ga": "Gabon", "gm": "Gambia", "ge": "Georgia", "de": "Germany", "gh": "Ghana", "gi": "Gibraltar", "gr": "Greece", "gl": "Greenland", "gd": "Grenada", "gp": "G uadeloupe", "gu": "Guam", "gt": "Guatemala", "gg": "Guernsey", "gn": "Guinea", " gw": "Guinea-Bissau", "gy": "Guyana", "ht": "Haiti", "hm": "Heard Island and McD onald Islands", "va": "Holy See (Vatican City State)", "hn": "Honduras", "hk": " Hong Kong", "hu": "Hungary", "is": "Iceland", "in": "India", "id": "Indonesia", "ir": "Iran, Islamic Republic of", "iq": "Iraq", "ie": "Ireland", "im": "Isle of Man", "il": "Israel", "it": "Italy", "jm": "Jamaica", "jp": "Japan", "je": "Jer sey", "jo": "Jordan", "kz": "Kazakhstan", "ke": "Kenya", "ki": "Kiribati", "kp": "Korea, Democratic People's Republic of", "kr": "Korea, Republic of", "kw": "Ku wait", "kg": "Kyrgyzstan", "la": "Lao People's Democratic Republic", "lv": "Latv ia", "lb": "Lebanon", "ls": "Lesotho", "lr": "Liberia", "ly": "Libyan Arab Jamah iriya", "li": "Liechtenstein", "lt": "Lithuania", "lu": "Luxembourg", "mo": "Mac ao", "mk": "Macedonia, The Former Yugoslav Republic of", "mg": "Madagascar", "mw ": "Malawi", "my": "Malaysia", "mv": "Maldives", "ml": "Mali", "mt": "Malta", "m h": "Marshall Islands", "mq": "Martinique", "mr": "Mauritania", "mu": "Mauritius ", "yt": "Mayotte", "mx": "Mexico", "fm": "Micronesia, Federated States of", "md ": "Moldova, Republic of", "mc": "Monaco", "mn": "Mongolia", "me": "Montenegro", "ms": "Montserrat", "ma": "Morocco", "mz": "Mozambique", "mm": "Myanmar", "na": "Namibia", "nr": "Nauru", "np": "Nepal", "nl": "Netherlands", "nc": "New Caledo nia", "nz": "New Zealand", "ni": "Nicaragua", "ne": "Niger", "ng": "Nigeria", "n u": "Niue", "nf": "Norfolk Island", "mp": "Northern Mariana Islands", "no": "Nor way", "om": "Oman", "pk": "Pakistan", "pw": "Palau", "ps": "Palestinian Territor y, Occupied", "pa": "Panama", "pg": "Papua New Guinea", "py": "Paraguay", "pe": "Peru", "ph": "Philippines", "pn": "Pitcairn", "pl": "Poland", "pt": "Portugal", "pr": "Puerto Rico", "qa": "Qatar", "re": "Reunion", "ro": "Romania", "ru": "Ru ssian Federation", "rw": "Rwanda", "bl": "Saint Barthelemy", "sh": "Saint Helena , Ascension and Tristan Da Cunha", "kn": "Saint Kitts and Nevis", "lc": "Saint L ucia", "mf": "Saint Martin (French Part)", "pm": "Saint Pierre and Miquelon", "v c": "Saint Vincent and the Grenadines", "ws": "Samoa", "sm": "San Marino", "st": "Sao Tome and Principe", "sa": "Saudi Arabia", "sn": "Senegal", "rs": "Serbia", "sc": "Seychelles", "sl": "Sierra Leone", "sg": "Singapore", "sx": "Sint Maarte n (Dutch Part)", "sk": "Slovakia", "si": "Slovenia", "sb": "Solomon Islands", "s o": "Somalia", "za": "South Africa", "gs": "South Georgia and the South Sandwich Islands", "es": "Spain", "lk": "Sri Lanka", "sd": "Sudan", "sr": "Suriname", "s j": "Svalbard and Jan Mayen", "sz": "Swaziland", "se": "Sweden", "ch": "Switzerl and", "sy": "Syrian Arab Republic", "tw": "Taiwan, Province of China", "tj": "Ta jikistan", "tz": "Tanzania, United Republic of", "th": "Thailand", "tl": "Timor- Leste", "tg": "Togo", "tk": "Tokelau", "to": "Tonga", "tt": "Trinidad and Tobago ", "tn": "Tunisia", "tr": "Turkey", "tm": "Turkmenistan", "tc": "Turks and Caico s Islands", "tv": "Tuvalu", "ug": "Uganda", "ua": "Ukraine", "ae": "United Arab Emirates", "gb": "United Kingdom", "us": "United States", "um": "United States M inor Outlying Islands", "uy": "Uruguay", "uz": "Uzbekistan", "vu": "Vanuatu", "v e": "Venezuela, Bolivarian Republic of", "vn": "Viet Nam", "vg": "Virgin Islands , British", "vi": "Virgin Islands, U.S.", "wf": "Wallis and Futuna", "eh": "West ern Sahara", "ye": "Yemen", "zm": "Zambia", "zw": "Zimbabwe"} 3 countrycodes = {'af': 'Afghanistan', 'ax': 'Aland Islands', 'al': 'Albania', 'dz ': 'Algeria', 'as': 'American Samoa', 'ad': 'Andorra', 'ao': 'Angola', 'ai': 'An guilla', 'aq': 'Antarctica', 'ag': 'Antigua and Barbuda', 'ar': 'Argentina', 'am ': 'Armenia', 'aw': 'Aruba', 'au': 'Australia', 'at': 'Austria', 'az': 'Azerbaij an', 'bs': 'Bahamas', 'bh': 'Bahrain', 'bd': 'Bangladesh', 'bb': 'Barbados', 'by ': 'Belarus', 'be': 'Belgium', 'bz': 'Belize', 'bj': 'Benin', 'bm': 'Bermuda', ' bt': 'Bhutan', 'bo': 'Bolivia, Plurinational State of', 'bq': 'Bonaire, Saint Eu statius and Saba', 'ba': 'Bosnia and Herzegovina', 'bw': 'Botswana', 'bv': 'Bouv et Island', 'br': 'Brazil', 'io': 'British Indian Ocean Territory', 'bn': 'Brune i Darussalam', 'bg': 'Bulgaria', 'bf': 'Burkina Faso', 'bi': 'Burundi', 'kh': 'C ambodia', 'cm': 'Cameroon', 'ca': 'Canada', 'cv': 'Cape Verde', 'ky': 'Cayman Is lands', 'cf': 'Central African Republic', 'td': 'Chad', 'cl': 'Chile', 'cn': 'Ch ina', 'cx': 'Christmas Island', 'cc': 'Cocos (Keeling) Islands', 'co': 'Colombia ', 'km': 'Comoros', 'cg': 'Congo', 'cd': 'Congo, The Democratic Republic of the' , 'ck': 'Cook Islands', 'cr': 'Costa Rica', 'ci': "Cote D'ivoire", 'hr': 'Croati a', 'cu': 'Cuba', 'cw': 'Curacao', 'cy': 'Cyprus', 'cz': 'Czech Republic', 'dk': 'Denmark', 'dj': 'Djibouti', 'dm': 'Dominica', 'do': 'Dominican Republic', 'ec' : 'Ecuador', 'eg': 'Egypt', 'sv': 'El Salvador', 'gq': 'Equatorial Guinea', 'er' : 'Eritrea', 'ee': 'Estonia', 'et': 'Ethiopia', 'fk': 'Falkland Islands (Malvina s)', 'fo': 'Faroe Islands', 'fj': 'Fiji', 'fi': 'Finland', 'fr': 'France', 'gf': 'French Guiana', 'pf': 'French Polynesia', 'tf': 'French Southern Territories', 'ga': 'Gabon', 'gm': 'Gambia', 'ge': 'Georgia', 'de': 'Germany', 'gh': 'Ghana', 'gi': 'Gibraltar', 'gr': 'Greece', 'gl': 'Greenland', 'gd': 'Grenada', 'gp': 'G uadeloupe', 'gu': 'Guam', 'gt': 'Guatemala', 'gg': 'Guernsey', 'gn': 'Guinea', ' gw': 'Guinea-Bissau', 'gy': 'Guyana', 'ht': 'Haiti', 'hm': 'Heard Island and McD onald Islands', 'va': 'Holy See (Vatican City State)', 'hn': 'Honduras', 'hk': ' Hong Kong', 'hu': 'Hungary', 'is': 'Iceland', 'in': 'India', 'id': 'Indonesia', 'ir': 'Iran, Islamic Republic of', 'iq': 'Iraq', 'ie': 'Ireland', 'im': 'Isle of Man', 'il': 'Israel', 'it': 'Italy', 'jm': 'Jamaica', 'jp': 'Japan', 'je': 'Jer sey', 'jo': 'Jordan', 'kz': 'Kazakhstan', 'ke': 'Kenya', 'ki': 'Kiribati', 'kp': "Korea, Democratic People's Republic of", 'kr': 'Korea, Republic of', 'kw': 'Ku wait', 'kg': 'Kyrgyzstan', 'la': "Lao People's Democratic Republic", 'lv': 'Latv ia', 'lb': 'Lebanon', 'ls': 'Lesotho', 'lr': 'Liberia', 'ly': 'Libyan Arab Jamah iriya', 'li': 'Liechtenstein', 'lt': 'Lithuania', 'lu': 'Luxembourg', 'mo': 'Mac ao', 'mk': 'Macedonia, The Former Yugoslav Republic of', 'mg': 'Madagascar', 'mw ': 'Malawi', 'my': 'Malaysia', 'mv': 'Maldives', 'ml': 'Mali', 'mt': 'Malta', 'm h': 'Marshall Islands', 'mq': 'Martinique', 'mr': 'Mauritania', 'mu': 'Mauritius ', 'yt': 'Mayotte', 'mx': 'Mexico', 'fm': 'Micronesia, Federated States of', 'md ': 'Moldova, Republic of', 'mc': 'Monaco', 'mn': 'Mongolia', 'me': 'Montenegro', 'ms': 'Montserrat', 'ma': 'Morocco', 'mz': 'Mozambique', 'mm': 'Myanmar', 'na': 'Namibia', 'nr': 'Nauru', 'np': 'Nepal', 'nl': 'Netherlands', 'nc': 'New Caledo nia', 'nz': 'New Zealand', 'ni': 'Nicaragua', 'ne': 'Niger', 'ng': 'Nigeria', 'n u': 'Niue', 'nf': 'Norfolk Island', 'mp': 'Northern Mariana Islands', 'no': 'Nor way', 'om': 'Oman', 'pk': 'Pakistan', 'pw': 'Palau', 'ps': 'Palestinian Territor y, Occupied', 'pa': 'Panama', 'pg': 'Papua New Guinea', 'py': 'Paraguay', 'pe': 'Peru', 'ph': 'Philippines', 'pn': 'Pitcairn', 'pl': 'Poland', 'pt': 'Portugal', 'pr': 'Puerto Rico', 'qa': 'Qatar', 're': 'Reunion', 'ro': 'Romania', 'ru': 'Ru ssian Federation', 'rw': 'Rwanda', 'bl': 'Saint Barthelemy', 'sh': 'Saint Helena , Ascension and Tristan Da Cunha', 'kn': 'Saint Kitts and Nevis', 'lc': 'Saint L ucia', 'mf': 'Saint Martin (French Part)', 'pm': 'Saint Pierre and Miquelon', 'v c': 'Saint Vincent and the Grenadines', 'ws': 'Samoa', 'sm': 'San Marino', 'st': 'Sao Tome and Principe', 'sa': 'Saudi Arabia', 'sn': 'Senegal', 'rs': 'Serbia', 'sc': 'Seychelles', 'sl': 'Sierra Leone', 'sg': 'Singapore', 'sx': 'Sint Maarte n (Dutch Part)', 'sk': 'Slovakia', 'si': 'Slovenia', 'sb': 'Solomon Islands', 's o': 'Somalia', 'za': 'South Africa', 'gs': 'South Georgia and the South Sandwich Islands', 'es': 'Spain', 'lk': 'Sri Lanka', 'sd': 'Sudan', 'sr': 'Suriname', 's j': 'Svalbard and Jan Mayen', 'sz': 'Swaziland', 'se': 'Sweden', 'ch': 'Switzerl and', 'sy': 'Syrian Arab Republic', 'tw': 'Taiwan, Province of China', 'tj': 'Ta jikistan', 'tz': 'Tanzania, United Republic of', 'th': 'Thailand', 'tl': 'Timor- Leste', 'tg': 'Togo', 'tk': 'Tokelau', 'to': 'Tonga', 'tt': 'Trinidad and Tobago ', 'tn': 'Tunisia', 'tr': 'Turkey', 'tm': 'Turkmenistan', 'tc': 'Turks and Caico s Islands', 'tv': 'Tuvalu', 'ug': 'Uganda', 'ua': 'Ukraine', 'ae': 'United Arab Emirates', 'gb': 'United Kingdom', 'us': 'United States', 'um': 'United States M inor Outlying Islands', 'uy': 'Uruguay', 'uz': 'Uzbekistan', 'vu': 'Vanuatu', 'v e': 'Venezuela, Bolivarian Republic of', 'vn': 'Viet Nam', 'vg': 'Virgin Islands , British', 'vi': 'Virgin Islands, U.S.', 'wf': 'Wallis and Futuna', 'eh': 'West ern Sahara', 'ye': 'Yemen', 'zm': 'Zambia', 'zw': 'Zimbabwe'}
OLDNEW

Powered by Google App Engine
This is Rietveld