Skip to content

Commit 3dc1fda

Browse files
author
Martin Journois
committed
python3 bugfix
1 parent dcbf516 commit 3dc1fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/plugins/geo_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, data):
3030
"""
3131
super(GeoJson, self).__init__()
3232
self.plugin_name = 'GeoJson'
33-
if type(data) is file:
33+
if 'read' in dir(data):
3434
self.data = data.read()
3535
elif type(data) is dict:
3636
self.data = json.dumps(data)

0 commit comments

Comments
 (0)