summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-12-29 18:38:41 +0000
committerMartin v. Löwis <martin@v.loewis.de>2007-12-29 18:38:41 +0000
commit297046793a97ca54c2cd963d3cbd22ad81dd51b7 (patch)
treebb22f31f53bc64a9da9edd8f9aabfe2a2692e939
parent9dc068cf5dd0e49fa3874c528b1e35a60dba3dad (diff)
downloadcpython-297046793a97ca54c2cd963d3cbd22ad81dd51b7.tar.gz
Use strings for all entity values, as that is now possible
with a Unicode string type.
-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