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
This commit is contained in:
Florian Müllner 2020-03-27 16:51:47 +01:00 committed by Florian Müllner
parent f3ba1e65ba
commit dd7727e315

View File

@ -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")