[gnome-shell] cldr2json: Don't use deprecated method



commit dd7727e315ac6e01ca9b5b6b9303cda19cb9f785
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 27 16:51:47 2020 +0100

    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 360030b788..7d6d71792d 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")
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]