import sys, os, re, difflib, unicodedata, errno, cgi
from itertools import *
+try:
+ import unicodedata2 as unicodedata
+except Exception:
+ pass
diff_symbols = "-+=*&^%$#@!~/"
diff_colors = ['red', 'green', 'blue']
yield 0x10000 + (high_surrogate - 0xD800) * 0x400 + (cp - 0xDC00)
high_surrogate = None
else:
- yield 0xFFFC
+ yield 0xFFFD
else:
if high_surrogate:
- yield 0xFFFC
+ yield 0xFFFD
high_surrogate = None
if 0xD800 <= cp <= 0xDBFF:
high_surrogate = cp
yield cp
high_surrogate = None
if high_surrogate:
- yield 0xFFFC
+ yield 0xFFFD
except NameError:
unichr = chr