commit | 93f3910dca86a18b52e39df10a3a58a9e7819af2 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Tue May 29 19:31:48 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Tue May 29 19:31:48 2007 +0000 |
tree | 58ddfce1fa0f234b6168bc0e77284c60a64c8871 | |
parent | 865b003de02b8df4830df733c74391e4042132ea [diff] [blame] |
types.StringType is gone, use str directly instead.
diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index 2b0d204..ff9f596 100644 --- a/Lib/xml/sax/saxutils.py +++ b/Lib/xml/sax/saxutils.py
@@ -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