]> granicus.if.org Git - python/commitdiff
Make isspace(chr(32)) return true
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 26 Dec 2000 16:07:59 +0000 (16:07 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 26 Dec 2000 16:07:59 +0000 (16:07 +0000)
Lib/curses/ascii.py

index 1135510bbefca1e16e1260c6ca8ba0a229fb488f..3c21169111bda7a7327472173056b18eafcfb07a 100644 (file)
@@ -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)