Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cc87f3

Browse files
committed
Make isspace(chr(32)) return true
1 parent e6bf858 commit 0cc87f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/curses/ascii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def isgraph(c): return _ctoi(c) >= 33 and _ctoi(c) <= 126
6161
def islower(c): return _ctoi(c) >= 97 and _ctoi(c) <= 122
6262
def isprint(c): return _ctoi(c) >= 32 and _ctoi(c) <= 126
6363
def ispunct(c): return _ctoi(c) != 32 and not isalnum(c)
64-
def isspace(c): return _ctoi(c) in (12, 10, 13, 9, 11)
64+
def isspace(c): return _ctoi(c) in (9, 10, 11, 12, 13, 32)
6565
def isupper(c): return _ctoi(c) >= 65 and _ctoi(c) <= 90
6666
def isxdigit(c): return isdigit(c) or \
6767
(_ctoi(c) >= 65 and _ctoi(c) <= 70) or (_ctoi(c) >= 97 and _ctoi(c) <= 102)

0 commit comments

Comments
 (0)