From c90584ecc171a71289c6860b1206ca8031bb96ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 29 Dec 2007 18:38:41 +0000 Subject: Use strings for all entity values, as that is now possible with a Unicode string type. --- Lib/htmlentitydefs.py | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v0.12