We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fa5bb7 commit 91df3a4Copy full SHA for 91df3a4
1 file changed
tests/test_folium.py
@@ -12,10 +12,6 @@
12
import os
13
import warnings
14
import sys
15
-try:
16
- import importlib
17
-except ImportError:
18
- import imp as importlib
19
20
import branca.element
21
@@ -36,6 +32,10 @@
36
32
except ImportError:
37
33
import mock
38
34
35
+import importlib
+if not hasattr(importlib, 'reload'):
+ import imp as importlib
+
39
40
rootpath = os.path.abspath(os.path.dirname(__file__))
41
0 commit comments