pull/94/head
eric 2020-02-12 23:23:08 -05:00
parent 9a65d24282
commit 50264620e5
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if sys.maxunicode >= 0x10000: # not narrow build
(0xDFFFE, 0xDFFFF), (0xEFFFE, 0xEFFFF),
(0xFFFFE, 0xFFFFF), (0x10FFFE, 0x10FFFF)])
_illegal_ranges = ["%s-%s" % (unichr(low), unichr(high))
_illegal_ranges = ["%s-%s" % (chr(low), chr(high))
for (low, high) in _illegal_unichrs]
_illegal_xml_chars_RE = re.compile(u'[%s]' % u''.join(_illegal_ranges))