Skip to content

Commit 05b820a

Browse files
committed
deprecation added
1 parent 97d36c7 commit 05b820a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

folium/folium.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ def line(self, locations,
159159
line_color='red', line_opacity=1.0)
160160
161161
"""
162-
162+
warnings.warn("%s is deprecated. Use %s instead" %
163+
("line", "add_children(PolyLine)"),
164+
FutureWarning, stacklevel=2)
163165
p = PolyLine(locations,
164166
color=line_color,
165167
weight=line_weight,
@@ -212,7 +214,9 @@ def multiline(self, locations, line_color=None, line_opacity=None,
212214
line_color='red', line_weight=2,
213215
line_opacity=1.0)
214216
"""
215-
217+
warnings.warn("%s is deprecated. Use %s instead" %
218+
("multiline", "add_children(MultiPolyLine)"),
219+
FutureWarning, stacklevel=2)
216220
p = MultiPolyLine(locations,
217221
color=line_color,
218222
weight=line_weight,

0 commit comments

Comments
 (0)