1.1 --- a/lib/__builtins__/character.py Fri Feb 03 23:24:15 2017 +0100
1.2 +++ b/lib/__builtins__/character.py Fri Feb 03 23:25:00 2017 +0100
1.3 @@ -20,7 +20,7 @@
1.4 """
1.5
1.6 from __builtins__.types import check_int, check_string
1.7 -from native import str_chr, str_ord
1.8 +from native import str_chr
1.9
1.10 def chr(i):
1.11
1.12 @@ -85,12 +85,7 @@
1.13
1.14 "Return the value of the given character 'c'."
1.15
1.16 - check_string(c)
1.17 -
1.18 - if c.__len__() == 1:
1.19 - return str_ord(c.__data__)
1.20 - else:
1.21 - raise ValueError, c
1.22 + return c.__ord__()
1.23
1.24 def unichr(i): pass
1.25