From 93f3910dca86a18b52e39df10a3a58a9e7819af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Tue, 29 May 2007 19:31:48 +0000 Subject: types.StringType is gone, use str directly instead. --- Lib/xml/sax/saxutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v0.12