Author: walter.doerwald
Date: Tue May 29 21:31:48 2007
New Revision: 55657
Modified:
python/branches/py3k-struni/Lib/xml/sax/saxutils.py
Log:
types.StringType is gone, use str directly instead.
Modified: python/branches/py3k-struni/Lib/xml/sax/saxutils.py
==============================================================================
--- python/branches/py3k-struni/Lib/xml/sax/saxutils.py (original)
+++ python/branches/py3k-struni/Lib/xml/sax/saxutils.py Tue May 29 21:31:48 2007
@@ -10,7 +10,10 @@
try:
_StringTypes = [types.StringType, types.UnicodeType]
except AttributeError:
- _StringTypes = [types.StringType]
+ try:
+ _StringTypes = [types.StringType]
+ except AttributeError:
+ _StringTypes = [str]
# See whether the xmlcharrefreplace error handler is
# supported
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins