[Python-3000-checkins] r55657 - python/branches/py3k-struni/Lib/xml/sax/saxutils.py

walter.doerwald python-3000-checkins at python.org
Tue May 29 21:31:56 CEST 2007


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


More information about the Python-3000-checkins mailing list