Use strings for all entity values, as that is now possible
with a Unicode string type.
This commit is contained in:
parent
18a499d1c5
commit
c90584ecc1
|
@ -265,9 +265,6 @@ entitydefs = {}
|
|||
|
||||
for (name, codepoint) in name2codepoint.items():
|
||||
codepoint2name[codepoint] = name
|
||||
if codepoint <= 0xff:
|
||||
entitydefs[name] = chr(codepoint)
|
||||
else:
|
||||
entitydefs[name] = '&#%d;' % codepoint
|
||||
entitydefs[name] = chr(codepoint)
|
||||
|
||||
del name, codepoint
|
||||
|
|
Loading…
Reference in New Issue