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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93f3910dca86a18b52e39df10a3a58a9e7819af2;p=thirdparty%2FPython%2Fcpython.git types.StringType is gone, use str directly instead. --- diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index 2b0d20473568..ff9f59627445 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