diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-12-29 18:38:41 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-12-29 18:38:41 (GMT) |
commit | c90584ecc171a71289c6860b1206ca8031bb96ca (patch) | |
tree | 3081c4e20170796d0ce15c28f7a3c913cacbfaa3 /Lib | |
parent | 18a499d1c5f47d0fbb56243bb458e2a71bd48c09 (diff) | |
download | cpython-c90584ecc171a71289c6860b1206ca8031bb96ca.zip cpython-c90584ecc171a71289c6860b1206ca8031bb96ca.tar.gz cpython-c90584ecc171a71289c6860b1206ca8031bb96ca.tar.bz2 |
Use strings for all entity values, as that is now possible
with a Unicode string type.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/htmlentitydefs.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/htmlentitydefs.py b/Lib/htmlentitydefs.py index bcc2420..e2b7bf1 100644 --- a/Lib/htmlentitydefs.py +++ b/Lib/htmlentitydefs.py @@ -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 |