From 09832740d18cef349bf53e058ffbfe1f0a954803 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 26 Mar 2009 17:15:46 +0000 Subject: fix isprintable() on space characters #5126 --- Tools/unicode/makeunicodedata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tools') diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py index 835e98b13b..10fd99188a 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 -- cgit v1.2.1