Skip to content

Commit 6b0da9e

Browse files
author
Martin Journois
committed
another python3 bugfix
1 parent 3dc1fda commit 6b0da9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/plugins/terminator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# As LO.Terminator.js is not served on both HTTP and HTTPS, we need to embed it explicitely into the code.
1111
_request = _urlopen("http://rawi.8713187.xyz/joergdietrich/Leaflet.Terminator/master/L.Terminator.js")
1212
assert _request.getcode()==200, "Error while loading Leaflet.terminator.js"
13-
_terminator_script = _request.read()
13+
_terminator_script = _request.read().decode('utf8')
1414

1515
class Terminator(Plugin):
1616
"""Leaflet.Terminator is a simple plug-in to the Leaflet library to overlay day and night regions on maps."""

0 commit comments

Comments
 (0)