diff options
Diffstat (limited to 'Tools/unicode')
-rw-r--r-- | Tools/unicode/gencodec.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/unicode/gencodec.py b/Tools/unicode/gencodec.py index 4c21469..31f0112 100644 --- a/Tools/unicode/gencodec.py +++ b/Tools/unicode/gencodec.py @@ -37,11 +37,11 @@ UNI_UNDEFINED = chr(0xFFFE) # Placeholder for a missing code point MISSING_CODE = -1 -mapRE = re.compile('((?:0x[0-9a-fA-F]+\+?)+)' - '\s+' - '((?:(?:0x[0-9a-fA-Z]+|<[A-Za-z]+>)\+?)*)' - '\s*' - '(#.+)?') +mapRE = re.compile(r'((?:0x[0-9a-fA-F]+\+?)+)' + r'\s+' + r'((?:(?:0x[0-9a-fA-Z]+|<[A-Za-z]+>)\+?)*)' + r'\s*' + r'(#.+)?') def parsecodes(codes, len=len, range=range): |