Skip to content

Commit 28e5458

Browse files
committed
use f-strings
1 parent 6770927 commit 28e5458

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

folium/features.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,11 +1153,9 @@ def warn_for_geometry_collections(self) -> None:
11531153
]
11541154
if any(geom_collections):
11551155
warnings.warn(
1156-
"{} is not configured to render for GeoJson GeometryCollection geometries. "
1157-
"Please consider reworking these features: {} to MultiPolygon for full functionality.\n"
1158-
"https://tools.ietf.org/html/rfc7946#page-9".format(
1159-
self._name, geom_collections
1160-
),
1156+
f"{self._name} is not configured to render for GeoJson GeometryCollection geometries. "
1157+
f"Please consider reworking these features: {geom_collections} to MultiPolygon for full functionality.\n"
1158+
"https://tools.ietf.org/html/rfc7946#page-9",
11611159
UserWarning,
11621160
)
11631161

0 commit comments

Comments
 (0)