From: Walter Dörwald Date: Tue, 29 May 2007 19:31:48 +0000 (+0000) Subject: types.StringType is gone, use str directly instead. X-Git-Tag: v3.0a1~847 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93f3910dca86a18b52e39df10a3a58a9e7819af2;p=python types.StringType is gone, use str directly instead. --- diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index 2b0d204735..ff9f596274 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