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

with a Unicode string type.
This commit is contained in:
Martin v. Löwis 2007-12-29 18:38:41 +00:00
parent 18a499d1c5
commit c90584ecc1
1 changed files with 1 additions and 4 deletions

View File

@ -265,9 +265,6 @@ entitydefs = {}
for (name, codepoint) in name2codepoint.items(): for (name, codepoint) in name2codepoint.items():
codepoint2name[codepoint] = name codepoint2name[codepoint] = name
if codepoint <= 0xff: entitydefs[name] = chr(codepoint)
entitydefs[name] = chr(codepoint)
else:
entitydefs[name] = '&#%d;' % codepoint
del name, codepoint del name, codepoint