summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/htmlentitydefs.py5
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