From fed895ffa83b41c098d9936804e17484d990a187 Mon Sep 17 00:00:00 2001 From: Kuya Takami Date: Sun, 15 Jul 2018 11:46:22 -0500 Subject: [PATCH] Fixes world_map demo --- examples/demo/world_map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/demo/world_map.py b/examples/demo/world_map.py index a344e3da6..284d7569d 100644 --- a/examples/demo/world_map.py +++ b/examples/demo/world_map.py @@ -12,7 +12,7 @@ # Standard library imports import os.path -import urllib.request, urllib.parse, urllib.error +from six.moves.urllib import request # Major library imports import numpy @@ -109,7 +109,7 @@ def _download_map_image(self): if not os.path.exists(self.image_path): print("Downloading map image") - urllib.request.urlretrieve(self.image_url, self.image_path) + request.urlretrieve(self.image_url, self.image_path) #=============================================================================== # demo object that is used by the demo.py application.