From 2c476bb2e742c4c93acc45d42671075bbe497b0d Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Sat, 31 Mar 2001 10:06:18 +0000 Subject: curses.ascii - space (ASCII 32) is now considered whitespace --- Lib/curses/ascii.py | 2 +- Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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) diff --git a/Misc/NEWS b/Misc/NEWS index e701670..426dfba 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -96,6 +96,8 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&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? ========================= -- cgit v0.12