[Python-3000-checkins] r59609 - python/branches/py3k/Lib/htmlentitydefs.py
martin.v.loewis
python-3000-checkins at python.org
Sat Dec 29 19:38:41 CET 2007
Author: martin.v.loewis
Date: Sat Dec 29 19:38:41 2007
New Revision: 59609
Modified:
python/branches/py3k/Lib/htmlentitydefs.py
Log:
Use strings for all entity values, as that is now possible
with a Unicode string type.
Modified: python/branches/py3k/Lib/htmlentitydefs.py
==============================================================================
--- python/branches/py3k/Lib/htmlentitydefs.py (original)
+++ python/branches/py3k/Lib/htmlentitydefs.py Sat Dec 29 19:38:41 2007
@@ -265,9 +265,6 @@
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
More information about the Python-3000-checkins
mailing list