From a2860e9c732a65eaf7d48e45cfa74e456d065302 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 2 Aug 2017 09:30:48 +0000 Subject: [PATCH] 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