From 502cd4cdedb5ed2ccce2ad1ca37ad91ff81c3ac3 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 17 Jan 2024 11:39:06 +0100 Subject: [PATCH] chore: remove support for settings starting with LEAFLET_STORAGE_ They are deprecated since 1.0 --- umap/settings/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/umap/settings/__init__.py b/umap/settings/__init__.py index 97943a35..914e8dc6 100644 --- a/umap/settings/__init__.py +++ b/umap/settings/__init__.py @@ -34,10 +34,7 @@ if path: for key in dir(d): if key.isupper(): value = getattr(d, key) - if key.startswith("LEAFLET_STORAGE"): - # Retrocompat pre 1.0, remove me in 1.1. - globals()["UMAP" + key[15:]] = value - elif key == "UMAP_CUSTOM_TEMPLATES": + if key == "UMAP_CUSTOM_TEMPLATES": if "DIRS" in globals()["TEMPLATES"][0]: globals()["TEMPLATES"][0]["DIRS"].insert(0, value) else: