From dd7727e315ac6e01ca9b5b6b9303cda19cb9f785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 27 Mar 2020 16:51:47 +0100 Subject: [PATCH] cldr2json: Don't use deprecated method Replace the deprecated 'warn()' with 'warning()' to shut up a runtime warning. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1136 --- data/cldr2json/cldr2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/cldr2json/cldr2json.py b/data/cldr2json/cldr2json.py index 360030b78..7d6d71792 100755 --- a/data/cldr2json/cldr2json.py +++ b/data/cldr2json/cldr2json.py @@ -161,7 +161,7 @@ def convert_file(source_file, destination_path): try: xkb_name = locale_to_xkb(root["locale"], root["name"]) except KeyError as e: - logging.warn(e) + logging.warning(e) return False destination_file = os.path.join(destination_path, xkb_name + ".json")