types.StringType is gone, use str directly instead.

This commit is contained in:
Walter Dörwald 2007-05-29 19:31:48 +00:00
parent 865b003de0
commit 93f3910dca
1 changed files with 4 additions and 1 deletions

View File

@ -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