commit | c90584ecc171a71289c6860b1206ca8031bb96ca | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat Dec 29 18:38:41 2007 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat Dec 29 18:38:41 2007 +0000 |
tree | 3081c4e20170796d0ce15c28f7a3c913cacbfaa3 | |
parent | 18a499d1c5f47d0fbb56243bb458e2a71bd48c09 [diff] [blame] |
Use strings for all entity values, as that is now possible with a Unicode string type.
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 @@ 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