summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-26 17:15:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-26 17:15:46 (GMT)
commit09832740d18cef349bf53e058ffbfe1f0a954803 (patch)
tree53c15807802ec9b8a21233f05616b693f940c37f /Tools
parent59406a9d857f3060f21269266a14a778aebf9904 (diff)
downloadcpython-09832740d18cef349bf53e058ffbfe1f0a954803.zip
cpython-09832740d18cef349bf53e058ffbfe1f0a954803.tar.gz
cpython-09832740d18cef349bf53e058ffbfe1f0a954803.tar.bz2
fix isprintable() on space characters #5126
Diffstat (limited to 'Tools')
-rw-r--r--Tools/unicode/makeunicodedata.py2
1 files changed, 1 insertions, 1 deletions
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 @@ def makeunicodetype(unicode, trace):
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