types.StringType is gone, use str directly instead.
This commit is contained in:
parent
865b003de0
commit
93f3910dca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue