mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
fix isprintable() on space characters #5126
This commit is contained in:
parent
59406a9d85
commit
09832740d1
4 changed files with 952 additions and 947 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue