Skip to content

Commit 87854a9

Browse files
committed
Use m instead of map in docstring examples.
`map` conflicts with a Python built-in function. Convention is to use `m` instead.
1 parent 913cf29 commit 87854a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

folium/folium.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ class Map(MacroElement):
147147
148148
Examples
149149
--------
150-
>>> map = folium.Map(location=[45.523, -122.675],
150+
>>> m = folium.Map(location=[45.523, -122.675],
151151
... width=750, height=500)
152-
>>> map = folium.Map(location=[45.523, -122.675],
152+
>>> m = folium.Map(location=[45.523, -122.675],
153153
tiles='Mapbox Control Room')
154-
>>> map = folium.Map(location=(45.523, -122.675), max_zoom=20,
154+
>>> m = folium.Map(location=(45.523, -122.675), max_zoom=20,
155155
tiles='Cloudmade', API_key='YourKey')
156-
>>> map = folium.Map(
156+
>>> m = folium.Map(
157157
... location=[45.523, -122.675],
158158
... zoom_start=2,
159159
... tiles='http://{s}.tiles.mapbox.com/v3/mapbox.control-room/{z}/{x}/{y}.png',
@@ -299,8 +299,8 @@ def _to_png(self, delay=3):
299299
300300
Examples
301301
--------
302-
>>> map._to_png()
303-
>>> map._to_png(time=10) # Wait 10 seconds between render and snapshot.
302+
>>> m._to_png()
303+
>>> m._to_png(time=10) # Wait 10 seconds between render and snapshot.
304304
305305
"""
306306
if self._png_image is None:
@@ -408,7 +408,7 @@ def fit_bounds(self, bounds, padding_top_left=None,
408408
409409
Examples
410410
--------
411-
>>> map.fit_bounds([[52.193636, -2.221575], [52.636878, -1.139759]])
411+
>>> m.fit_bounds([[52.193636, -2.221575], [52.636878, -1.139759]])
412412
413413
"""
414414
self.add_child(FitBounds(bounds,

0 commit comments

Comments
 (0)