We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e56a3c3 commit 07ea6b2Copy full SHA for 07ea6b2
folium/plugins/terminator.py
@@ -1,11 +1,11 @@
1
# -*- coding: utf-8 -*-
2
3
-import urllib2
+from future.moves.urllib.request import urlopen as _urlopen
4
5
from .plugin import Plugin
6
7
# As LO.Terminator.js is not served on both HTTP and HTTPS, we need to embed it explicitely into the code.
8
-_request = urllib2.urlopen("http://rawi.8713187.xyz/joergdietrich/Leaflet.Terminator/master/L.Terminator.js")
+_request = _urlopen("http://rawi.8713187.xyz/joergdietrich/Leaflet.Terminator/master/L.Terminator.js")
9
assert _request.getcode()==200, "Error while loading Leaflet.terminator.js"
10
_terminator_script = _request.read()
11
0 commit comments