Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2017-06-27 10:42:09 +0300
committerIlya Zverev <ilya@zverev.info>2017-06-28 19:41:05 +0300
commitc878b6a37dd87f57c9db8754a9e30e2ea713220c (patch)
tree4e71afec05aea4e299a59168e4761d6133d9e6a1 /tools/python
parent5ec098db10080525bc57f304e2ca9f5aed3dcb63 (diff)
review fixes
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/viator_cities.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/python/viator_cities.py b/tools/python/viator_cities.py
index c6818f1cef..10dc489420 100644
--- a/tools/python/viator_cities.py
+++ b/tools/python/viator_cities.py
@@ -14,11 +14,9 @@ class ViatorApi(object):
self.apikey = apikey
def get_locations(self):
- url = 'http://viatorapi.viator.com/service/taxonomy/locations?apiKey=' + self.apikey
+ url = 'https://viatorapi.viator.com/service/taxonomy/locations?apiKey=' + self.apikey
stream = urllib2.urlopen(url)
- payload = stream.read()
- locations = json.loads(payload)
- return locations
+ return json.load(stream)
def check_errors(locations):