[gnome-shell/wip/fmuellner/pardon-my-french: 12/22] Remove useless test



commit a2860e9c732a65eaf7d48e45cfa74e456d065302
Author: Alan <alan boum org>
Date:   Wed Aug 2 09:30:48 2017 +0000

    Remove useless test

 cldr2json.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/cldr2json.py b/cldr2json.py
index 7420f7cda..a9633d77f 100755
--- a/cldr2json.py
+++ b/cldr2json.py
@@ -48,12 +48,8 @@ LOCALE_TO_XKB_OVERRIDES = {
 
 
 def parse_single_key(value):
-    if hasattr(__builtins__, 'unichr'):
-        def unescape(m):
-            return chr(int(m.group(1), 16))
-    else:
-        def unescape(m):
-            return chr(int(m.group(1), 16))
+    def unescape(m):
+        return chr(int(m.group(1), 16))
     value = ESCAPE_PATTERN.sub(unescape, value)
     return value
 


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