diff options
-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 |