[gnome-shell/wip/fmuellner/pardon-my-french: 8/77] Load mappings at module initialisation
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/pardon-my-french: 8/77] Load mappings at module initialisation
- Date: Mon, 4 Mar 2019 17:25:27 +0000 (UTC)
commit 40ae3c1c06ff006f991f84149f35d976c555f3f4
Author: Alan <alan boum org>
Date: Wed Aug 2 10:16:56 2017 +0000
Load mappings at module initialisation
cldr2json.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/cldr2json.py b/cldr2json.py
index a9633d77f..1a2574698 100755
--- a/cldr2json.py
+++ b/cldr2json.py
@@ -181,13 +181,14 @@ def load_xkb_mappings():
return name_to_xkb
+locale.setlocale(locale.LC_ALL, "C")
+name_to_xkb = load_xkb_mappings()
+
+
if __name__ == "__main__":
if "DEBUG" in os.environ:
logging.basicConfig(level=logging.DEBUG)
- locale.setlocale(locale.LC_ALL, "C")
- name_to_xkb = load_xkb_mappings()
-
if len(sys.argv) < 2:
print("supply a CLDR keyboard file")
sys.exit(1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]