Skip to content

Commit ff5d796

Browse files
author
Martin Journois
committed
Remove conservative deep copy, after discussion with @themiurgo
1 parent f3c065a commit ff5d796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def __init__(self, data, style_function=None):
204204
if 'read' in dir(data):
205205
self.data = json.load(data)
206206
elif type(data) is dict:
207-
self.data = json.loads(json.dumps(data)) # A lazy way of doing deep copy.
207+
self.data = data
208208
else:
209209
self.data = json.loads(data)
210210

0 commit comments

Comments
 (0)