diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-29 19:31:48 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-29 19:31:48 (GMT) |
commit | 93f3910dca86a18b52e39df10a3a58a9e7819af2 (patch) | |
tree | 58ddfce1fa0f234b6168bc0e77284c60a64c8871 /Lib/xml/sax | |
parent | 865b003de02b8df4830df733c74391e4042132ea (diff) | |
download | cpython-93f3910dca86a18b52e39df10a3a58a9e7819af2.zip cpython-93f3910dca86a18b52e39df10a3a58a9e7819af2.tar.gz cpython-93f3910dca86a18b52e39df10a3a58a9e7819af2.tar.bz2 |
types.StringType is gone, use str directly instead.
Diffstat (limited to 'Lib/xml/sax')
-rw-r--r-- | Lib/xml/sax/saxutils.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ 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 |