Commit c90584ec authored by Martin v. Löwis's avatar Martin v. Löwis

Use strings for all entity values, as that is now possible

with a Unicode string type.
parent 18a499d1
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment