Mercurial > cpython-lru_cache-weakref
diff Lib/htmlentitydefs.py @ 44385:5670104acd39
Use strings for all entity values, as that is now possible
with a Unicode string type.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 29 Dec 2007 18:38:41 +0000 |
| parents | f340cb045bf9 |
| children |
line wrap: on
line diff
--- a/Lib/htmlentitydefs.py Sat Dec 29 10:57:11 2007 +0000 +++ b/Lib/htmlentitydefs.py Sat Dec 29 18:38:41 2007 +0000 @@ -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
