Skip to content

Commit 32d4654

Browse files
author
Martin Journois
committed
Fix error in urllib import with python3 try2
1 parent 07ea6b2 commit 32d4654

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

folium/plugins/terminator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# -*- coding: utf-8 -*-
22

3-
from future.moves.urllib.request import urlopen as _urlopen
3+
try:
4+
from urllib.request import urlopen as _urlopen
5+
except:
6+
from urllib import urlopen as _urlopen
47

58
from .plugin import Plugin
69

0 commit comments

Comments
 (0)