Skip to content

Commit

Permalink
Use region name. It's more interesting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Mitchell authored and Ryan Mitchell committed Jan 13, 2017
1 parent 787685c commit a9f4e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter4/6-wikiHistories.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def getCountry(ipAddress):
except HTTPError:
return None
responseJson = json.loads(response)
return responseJson.get("country_code")
return responseJson["region_name"]

links = getLinks("/wiki/Python_(programming_language)")

Expand Down

0 comments on commit a9f4e71

Please sign in to comment.