mirror of
https://github.com/python/cpython.git
synced 2025-10-29 12:44:56 +00:00
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
1 changed files with 1 additions and 4 deletions
|
|
@ -265,9 +265,6 @@
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue