]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
curses.ascii - space (ASCII 32) is now considered whitespace
authorMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 10:06:18 +0000 (10:06 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 10:06:18 +0000 (10:06 +0000)
Lib/curses/ascii.py
Misc/NEWS

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)
index e701670f6cc0168b0e00d891c0270afd7c22b3ae..426dfba1052848b0038c536a5fee73f83b899452 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -96,6 +96,8 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&group_id=5470&atid
 
 - atexit.py - mutate list of functions in thread-safe way
 
+- curses.ascii - space (ASCII 32) is now considered whitespace
+
 What's New in Python 2.0?
 =========================