Skip to content

Commit ab93fb1

Browse files
author
Martin Journois
committed
Long line PEP8
1 parent ff5d796 commit ab93fb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

folium/features.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ def __init__(self, data, style_function=None):
215215
self.data = {'type' : 'Feature', 'geometry' : self.data}
216216
self.data = {'type' : 'FeatureCollection', 'features' : [self.data]}
217217

218-
self.style_function = style_function if style_function is not None else (lambda x: {})
218+
if style_function is None:
219+
style_function = lambda x: {}
220+
self.style_function = style_function
219221

220222
self._template = Template(u"""
221223
{% macro script(this, kwargs) %}

0 commit comments

Comments
 (0)