]> granicus.if.org Git - python/commitdiff
types.StringType is gone, use str directly instead.
authorWalter Dörwald <walter@livinglogic.de>
Tue, 29 May 2007 19:31:48 +0000 (19:31 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 29 May 2007 19:31:48 +0000 (19:31 +0000)
Lib/xml/sax/saxutils.py

index 2b0d2047356802cd66de4607e056f89c5bce178f..ff9f59627445c7c7ff9996c124704861adb93e6d 100644 (file)
@@ -10,7 +10,10 @@ from . import xmlreader
 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