Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(230)

Unified Diff: Tools/unicode/makeunicodedata.py

Issue 767: [issue2630] repr() should not escape non-ASCII characters (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/branches/py3k/
Patch Set: Created 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: Tools/unicode/makeunicodedata.py
===================================================================
--- Tools/unicode/makeunicodedata.py (revision 62744)
+++ Tools/unicode/makeunicodedata.py (working copy)
@@ -60,6 +60,7 @@
UPPER_MASK = 0x80
XID_START_MASK = 0x100
XID_CONTINUE_MASK = 0x200
+HEX_ESCAPE_MASK = 0x400
def maketables(trace=0):
@@ -372,6 +373,10 @@
flags |= TITLE_MASK
if category == "Lu":
flags |= UPPER_MASK
+ if category[0] == "C":
+ flags |= HEX_ESCAPE_MASK
+ if category[0] == "Z" and char != " ":
+ flags |= HEX_ESCAPE_MASK
if "XID_Start" in properties:
flags |= XID_START_MASK
if "XID_Continue" in properties:
« Python/pythonrun.c ('k') | no next file »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r338