commit | 09832740d18cef349bf53e058ffbfe1f0a954803 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Mar 26 17:15:46 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Mar 26 17:15:46 2009 +0000 |
tree | 53c15807802ec9b8a21233f05616b693f940c37f | |
parent | 59406a9d857f3060f21269266a14a778aebf9904 [diff] [blame] |
fix isprintable() on space characters #5126
diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py index 835e98b..10fd991 100644 --- a/Tools/unicode/makeunicodedata.py +++ b/Tools/unicode/makeunicodedata.py
@@ -375,7 +375,7 @@ flags |= TITLE_MASK if category == "Lu": flags |= UPPER_MASK - if char == " " or category[0] not in ("C", "Z"): + if char == ord(" ") or category[0] not in ("C", "Z"): flags |= PRINTABLE_MASK if "XID_Start" in properties: flags |= XID_START_MASK