diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-12-29 18:38:41 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-12-29 18:38:41 +0000 |
commit | 297046793a97ca54c2cd963d3cbd22ad81dd51b7 (patch) | |
tree | bb22f31f53bc64a9da9edd8f9aabfe2a2692e939 | |
parent | 9dc068cf5dd0e49fa3874c528b1e35a60dba3dad (diff) | |
download | cpython-297046793a97ca54c2cd963d3cbd22ad81dd51b7.tar.gz |
Use strings for all entity values, as that is now possible
with a Unicode string type.
-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 bcc2420246..e2b7bf1fb8 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 |