Remove useless test

This commit is contained in:
Alan 2017-08-02 09:30:48 +00:00 committed by Florian Müllner
parent 1c5258ab68
commit a2860e9c73

View File

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