diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-12-26 16:07:59 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-12-26 16:07:59 +0000 |
commit | 31b5bde2fd86a9faf3e15a67b98c72f81c01ebca (patch) | |
tree | e6312c95202f4446a657333c88bbc333a6cb353e /Lib/curses/ascii.py | |
parent | 6342e4ac281dead31936479622225c260064834f (diff) | |
download | cpython-31b5bde2fd86a9faf3e15a67b98c72f81c01ebca.tar.gz |
Make isspace(chr(32)) return true
Diffstat (limited to 'Lib/curses/ascii.py')
-rw-r--r-- | Lib/curses/ascii.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/curses/ascii.py b/Lib/curses/ascii.py index 1135510bbe..3c21169111 100644 --- a/Lib/curses/ascii.py +++ b/Lib/curses/ascii.py @@ -61,7 +61,7 @@ def isgraph(c): return _ctoi(c) >= 33 and _ctoi(c) <= 126 def islower(c): return _ctoi(c) >= 97 and _ctoi(c) <= 122 def isprint(c): return _ctoi(c) >= 32 and _ctoi(c) <= 126 def ispunct(c): return _ctoi(c) != 32 and not isalnum(c) -def isspace(c): return _ctoi(c) in (12, 10, 13, 9, 11) +def isspace(c): return _ctoi(c) in (9, 10, 11, 12, 13, 32) def isupper(c): return _ctoi(c) >= 65 and _ctoi(c) <= 90 def isxdigit(c): return isdigit(c) or \ (_ctoi(c) >= 65 and _ctoi(c) <= 70) or (_ctoi(c) >= 97 and _ctoi(c) <= 102) |