summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-12-26 16:07:59 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-12-26 16:07:59 (GMT)
commit0cc87f37b3d3f5ad7250de5b828ca60e981eab2f (patch)
tree8d5f9da6458651872cd663bb813537267baa5b4c /Lib
parente6bf85845f7f95bf0839247f7caf4ecadee109ac (diff)
downloadcpython-0cc87f37b3d3f5ad7250de5b828ca60e981eab2f.zip
cpython-0cc87f37b3d3f5ad7250de5b828ca60e981eab2f.tar.gz
cpython-0cc87f37b3d3f5ad7250de5b828ca60e981eab2f.tar.bz2
Make isspace(chr(32)) return true
Diffstat (limited to 'Lib')
-rw-r--r--Lib/curses/ascii.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/curses/ascii.py b/Lib/curses/ascii.py
index 1135510..3c21169 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)