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
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins