summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-12-29 18:38:41 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-12-29 18:38:41 (GMT)
commitc90584ecc171a71289c6860b1206ca8031bb96ca (patch)
tree3081c4e20170796d0ce15c28f7a3c913cacbfaa3 /Lib
parent18a499d1c5f47d0fbb56243bb458e2a71bd48c09 (diff)
downloadcpython-c90584ecc171a71289c6860b1206ca8031bb96ca.zip
cpython-c90584ecc171a71289c6860b1206ca8031bb96ca.tar.gz
cpython-c90584ecc171a71289c6860b1206ca8031bb96ca.tar.bz2
Use strings for all entity values, as that is now possible
with a Unicode string type.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/htmlentitydefs.py5
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