Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pygeoip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pygeoip
Commits
5e9d4771
Commit
5e9d4771
authored
Sep 24, 2012
by
Erik Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make countries match
parent
35ee374a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
17 deletions
+25
-17
pygeoip/const.py
+25
-17
No files found.
pygeoip/const.py
View file @
5e9d4771
...
@@ -346,7 +346,7 @@ CONTINENT_MAP = {
...
@@ -346,7 +346,7 @@ CONTINENT_MAP = {
'Angola'
:
'Africa'
,
'Angola'
:
'Africa'
,
'Benin'
:
'Africa'
,
'Benin'
:
'Africa'
,
'Botswana'
:
'Africa'
,
'Botswana'
:
'Africa'
,
'Burkina
'
:
'Africa'
,
'Burkina
Faso'
:
'Africa'
,
'Burundi'
:
'Africa'
,
'Burundi'
:
'Africa'
,
'Cameroon'
:
'Africa'
,
'Cameroon'
:
'Africa'
,
'Cape Verde'
:
'Africa'
,
'Cape Verde'
:
'Africa'
,
...
@@ -354,7 +354,7 @@ CONTINENT_MAP = {
...
@@ -354,7 +354,7 @@ CONTINENT_MAP = {
'Chad'
:
'Africa'
,
'Chad'
:
'Africa'
,
'Comoros'
:
'Africa'
,
'Comoros'
:
'Africa'
,
'Congo'
:
'Africa'
,
'Congo'
:
'Africa'
,
'Congo,
Democratic Republic of'
:
'Africa'
,
'Congo,
The Democratic Republic of the'
:
'Africa'
,
'Djibouti'
:
'Africa'
,
'Djibouti'
:
'Africa'
,
'Egypt'
:
'Africa'
,
'Egypt'
:
'Africa'
,
'Equatorial Guinea'
:
'Africa'
,
'Equatorial Guinea'
:
'Africa'
,
...
@@ -365,7 +365,7 @@ CONTINENT_MAP = {
...
@@ -365,7 +365,7 @@ CONTINENT_MAP = {
'Ghana'
:
'Africa'
,
'Ghana'
:
'Africa'
,
'Guinea'
:
'Africa'
,
'Guinea'
:
'Africa'
,
'Guinea-Bissau'
:
'Africa'
,
'Guinea-Bissau'
:
'Africa'
,
'Ivory Coast'
:
'Africa'
,
"Cote D'Ivoire"
:
'Africa'
,
'Kenya'
:
'Africa'
,
'Kenya'
:
'Africa'
,
'Lesotho'
:
'Africa'
,
'Lesotho'
:
'Africa'
,
'Liberia'
:
'Africa'
,
'Liberia'
:
'Africa'
,
...
@@ -390,37 +390,40 @@ CONTINENT_MAP = {
...
@@ -390,37 +390,40 @@ CONTINENT_MAP = {
'South Sudan'
:
'Africa'
,
'South Sudan'
:
'Africa'
,
'Sudan'
:
'Africa'
,
'Sudan'
:
'Africa'
,
'Swaziland'
:
'Africa'
,
'Swaziland'
:
'Africa'
,
'Tanzania
'
:
'Africa'
,
'Tanzania
, United Republic of'
:
'Africa'
,
'Togo'
:
'Africa'
,
'Togo'
:
'Africa'
,
'Tunisia'
:
'Africa'
,
'Tunisia'
:
'Africa'
,
'Uganda'
:
'Africa'
,
'Uganda'
:
'Africa'
,
'Western Sahara'
:
'Africa'
,
'Zambia'
:
'Africa'
,
'Zambia'
:
'Africa'
,
'Zimbabwe'
:
'Africa'
,
'Zimbabwe'
:
'Africa'
,
'Afghanistan'
:
'Asia'
,
'Afghanistan'
:
'Asia'
,
'Bahrain'
:
'Asia'
,
'Bahrain'
:
'Asia'
,
'Bangladesh'
:
'Asia'
,
'Bangladesh'
:
'Asia'
,
'Bhutan'
:
'Asia'
,
'Bhutan'
:
'Asia'
,
'Brunei
'
:
'Asia'
,
'Brunei
Darussalam'
:
'Asia'
,
'
Burma (Myanmar)'
:
'Asia'
,
'
Myanmar'
:
'Asia'
,
'Cambodia'
:
'Asia'
,
'Cambodia'
:
'Asia'
,
'China'
:
'Asia'
,
'China'
:
'Asia'
,
'
East Timor'
:
'Asia'
,
'
Timor-Leste'
:
'Asia'
,
'India'
:
'Asia'
,
'India'
:
'Asia'
,
'Indonesia'
:
'Asia'
,
'Indonesia'
:
'Asia'
,
'Iran
'
:
'Asia'
,
'Iran
, Islamic Republic of'
:
'Asia'
,
'Iraq'
:
'Asia'
,
'Iraq'
:
'Asia'
,
'Israel'
:
'Asia'
,
'Israel'
:
'Asia'
,
'Palestinian Territory'
:
'Asia'
,
'Japan'
:
'Asia'
,
'Japan'
:
'Asia'
,
'Jordan'
:
'Asia'
,
'Jordan'
:
'Asia'
,
'Kazakhstan'
:
'Asia'
,
'Kazakhstan'
:
'Asia'
,
'Korea, North'
:
'Asia'
,
"Korea, Democratic People's Republic of"
:
'Asia'
,
# North
'Korea,
South'
:
'Asia'
,
'Korea,
Republic of'
:
'Asia'
,
# South
'Kuwait'
:
'Asia'
,
'Kuwait'
:
'Asia'
,
'Kyrgyzstan'
:
'Asia'
,
'Kyrgyzstan'
:
'Asia'
,
'Laos'
:
'Asia'
,
"Lao People's Democratic Republic"
:
'Asia'
,
'Lebanon'
:
'Asia'
,
'Lebanon'
:
'Asia'
,
'Malaysia'
:
'Asia'
,
'Malaysia'
:
'Asia'
,
'Maldives'
:
'Asia'
,
'Maldives'
:
'Asia'
,
'Macau'
:
'Asia'
,
'Mongolia'
:
'Asia'
,
'Mongolia'
:
'Asia'
,
'Nepal'
:
'Asia'
,
'Nepal'
:
'Asia'
,
'Oman'
:
'Asia'
,
'Oman'
:
'Asia'
,
...
@@ -431,8 +434,9 @@ CONTINENT_MAP = {
...
@@ -431,8 +434,9 @@ CONTINENT_MAP = {
'Saudi Arabia'
:
'Asia'
,
'Saudi Arabia'
:
'Asia'
,
'Singapore'
:
'Asia'
,
'Singapore'
:
'Asia'
,
'Sri Lanka'
:
'Asia'
,
'Sri Lanka'
:
'Asia'
,
'Syria
'
:
'Asia'
,
'Syria
n Arab Republic'
:
'Asia'
,
'Tajikistan'
:
'Asia'
,
'Tajikistan'
:
'Asia'
,
'Taiwan'
:
'Asia'
,
'Thailand'
:
'Asia'
,
'Thailand'
:
'Asia'
,
'Turkey'
:
'Asia'
,
'Turkey'
:
'Asia'
,
'Turkmenistan'
:
'Asia'
,
'Turkmenistan'
:
'Asia'
,
...
@@ -458,10 +462,12 @@ CONTINENT_MAP = {
...
@@ -458,10 +462,12 @@ CONTINENT_MAP = {
'France'
:
'Europe'
,
'France'
:
'Europe'
,
'Georgia'
:
'Europe'
,
'Georgia'
:
'Europe'
,
'Germany'
:
'Europe'
,
'Germany'
:
'Europe'
,
'Gibraltar'
:
'Europe'
,
'Greece'
:
'Europe'
,
'Greece'
:
'Europe'
,
'Hungary'
:
'Europe'
,
'Hungary'
:
'Europe'
,
'Iceland'
:
'Europe'
,
'Iceland'
:
'Europe'
,
'Ireland'
:
'Europe'
,
'Ireland'
:
'Europe'
,
'Isle of Man'
:
'Europe'
,
'Italy'
:
'Europe'
,
'Italy'
:
'Europe'
,
'Latvia'
:
'Europe'
,
'Latvia'
:
'Europe'
,
'Liechtenstein'
:
'Europe'
,
'Liechtenstein'
:
'Europe'
,
...
@@ -469,7 +475,7 @@ CONTINENT_MAP = {
...
@@ -469,7 +475,7 @@ CONTINENT_MAP = {
'Luxembourg'
:
'Europe'
,
'Luxembourg'
:
'Europe'
,
'Macedonia'
:
'Europe'
,
'Macedonia'
:
'Europe'
,
'Malta'
:
'Europe'
,
'Malta'
:
'Europe'
,
'Moldova
'
:
'Europe'
,
'Moldova
, Republic of'
:
'Europe'
,
'Monaco'
:
'Europe'
,
'Monaco'
:
'Europe'
,
'Montenegro'
:
'Europe'
,
'Montenegro'
:
'Europe'
,
'Netherlands'
:
'Europe'
,
'Netherlands'
:
'Europe'
,
...
@@ -486,7 +492,7 @@ CONTINENT_MAP = {
...
@@ -486,7 +492,7 @@ CONTINENT_MAP = {
'Switzerland'
:
'Europe'
,
'Switzerland'
:
'Europe'
,
'Ukraine'
:
'Europe'
,
'Ukraine'
:
'Europe'
,
'United Kingdom'
:
'Europe'
,
'United Kingdom'
:
'Europe'
,
'
Vatican City'
:
'Europe'
,
'
Holy See (Vatican City State)'
:
'Europe'
,
'Antigua and Barbuda'
:
"North America"
,
'Antigua and Barbuda'
:
"North America"
,
'Bahamas'
:
"North America"
,
'Bahamas'
:
"North America"
,
'Barbados'
:
"North America"
,
'Barbados'
:
"North America"
,
...
@@ -498,6 +504,7 @@ CONTINENT_MAP = {
...
@@ -498,6 +504,7 @@ CONTINENT_MAP = {
'Dominican Republic'
:
"North America"
,
'Dominican Republic'
:
"North America"
,
'El Salvador'
:
"North America"
,
'El Salvador'
:
"North America"
,
'Grenada'
:
"North America"
,
'Grenada'
:
"North America"
,
'Greenland'
:
"North America"
,
'Guatemala'
:
"North America"
,
'Guatemala'
:
"North America"
,
'Haiti'
:
"North America"
,
'Haiti'
:
"North America"
,
'Honduras'
:
"North America"
,
'Honduras'
:
"North America"
,
...
@@ -505,6 +512,7 @@ CONTINENT_MAP = {
...
@@ -505,6 +512,7 @@ CONTINENT_MAP = {
'Mexico'
:
"North America"
,
'Mexico'
:
"North America"
,
'Nicaragua'
:
"North America"
,
'Nicaragua'
:
"North America"
,
'Panama'
:
"North America"
,
'Panama'
:
"North America"
,
'Puerto Rico'
:
"North America"
,
'Saint Kitts and Nevis'
:
"North America"
,
'Saint Kitts and Nevis'
:
"North America"
,
'Saint Lucia'
:
"North America"
,
'Saint Lucia'
:
"North America"
,
'Saint Vincent and the Grenadines'
:
"North America"
,
'Saint Vincent and the Grenadines'
:
"North America"
,
...
@@ -514,12 +522,12 @@ CONTINENT_MAP = {
...
@@ -514,12 +522,12 @@ CONTINENT_MAP = {
'Fiji'
:
'Oceania'
,
'Fiji'
:
'Oceania'
,
'Kiribati'
:
'Oceania'
,
'Kiribati'
:
'Oceania'
,
'Marshall Islands'
:
'Oceania'
,
'Marshall Islands'
:
'Oceania'
,
'Micronesia
'
:
'Oceania'
,
'Micronesia
,, Federated States of'
:
'Oceania'
,
'Nauru'
:
'Oceania'
,
'Nauru'
:
'Oceania'
,
'New Zealand'
:
'Oceania'
,
'New Zealand'
:
'Oceania'
,
'Palau'
:
'Oceania'
,
'Palau'
:
'Oceania'
,
'Papua New Guinea'
:
'Oceania'
,
'Papua New Guinea'
:
'Oceania'
,
'
Samoa'
:
'Oceania'
,
'
American Samoa'
:
'Oceania'
,
'Solomon Islands'
:
'Oceania'
,
'Solomon Islands'
:
'Oceania'
,
'Tonga'
:
'Oceania'
,
'Tonga'
:
'Oceania'
,
'Tuvalu'
:
'Oceania'
,
'Tuvalu'
:
'Oceania'
,
...
@@ -530,7 +538,7 @@ CONTINENT_MAP = {
...
@@ -530,7 +538,7 @@ CONTINENT_MAP = {
'Chile'
:
'South America'
,
'Chile'
:
'South America'
,
'Colombia'
:
'South America'
,
'Colombia'
:
'South America'
,
'Ecuador'
:
'South America'
,
'Ecuador'
:
'South America'
,
'
Guyana'
:
'South America'
,
'
French Guiana'
:
'South America'
,
'Paraguay'
:
'South America'
,
'Paraguay'
:
'South America'
,
'Peru'
:
'South America'
,
'Peru'
:
'South America'
,
'Suriname'
:
'South America'
,
'Suriname'
:
'South America'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment