@@ -53,19 +53,19 @@ def _ctoi(c):
5353
5454def isalnum (c ): return isalpha (c ) or isdigit (c )
5555def isalpha (c ): return isupper (c ) or islower (c )
56- def isascii (c ): return _ctoi (c ) <= 127 # ?
56+ def isascii (c ): return 0 <= _ctoi (c ) <= 127 # ?
5757def isblank (c ): return _ctoi (c ) in (9 , 32 )
58- def iscntrl (c ): return _ctoi (c ) <= 31 or _ctoi (c ) == 127
59- def isdigit (c ): return _ctoi ( c ) >= 48 and _ctoi (c ) <= 57
60- def isgraph (c ): return _ctoi ( c ) >= 33 and _ctoi (c ) <= 126
61- def islower (c ): return _ctoi ( c ) >= 97 and _ctoi (c ) <= 122
62- def isprint (c ): return _ctoi ( c ) >= 32 and _ctoi (c ) <= 126
58+ def iscntrl (c ): return 0 <= _ctoi (c ) <= 31 or _ctoi (c ) == 127
59+ def isdigit (c ): return 48 <= _ctoi (c ) <= 57
60+ def isgraph (c ): return 33 <= _ctoi (c ) <= 126
61+ def islower (c ): return 97 <= _ctoi (c ) <= 122
62+ def isprint (c ): return 32 <= _ctoi (c ) <= 126
6363def ispunct (c ): return isgraph (c ) and not isalnum (c )
6464def isspace (c ): return _ctoi (c ) in (9 , 10 , 11 , 12 , 13 , 32 )
65- def isupper (c ): return _ctoi ( c ) >= 65 and _ctoi (c ) <= 90
65+ def isupper (c ): return 65 <= _ctoi (c ) <= 90
6666def isxdigit (c ): return isdigit (c ) or \
67- (_ctoi ( c ) >= 65 and _ctoi (c ) <= 70 ) or (_ctoi ( c ) >= 97 and _ctoi (c ) <= 102 )
68- def isctrl (c ): return _ctoi (c ) < 32
67+ (65 <= _ctoi (c ) <= 70 ) or (97 <= _ctoi (c ) <= 102 )
68+ def isctrl (c ): return 0 <= _ctoi (c ) < 32
6969def ismeta (c ): return _ctoi (c ) > 127
7070
7171def ascii (c ):
0 commit comments