fix isprintable() on space characters #5126

This commit is contained in:
Benjamin Peterson 2009-03-26 17:15:46 +00:00
parent 59406a9d85
commit 09832740d1
4 changed files with 952 additions and 947 deletions

View file

@ -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