mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
types.StringType is gone, use str directly instead.
This commit is contained in:
parent
865b003de0
commit
93f3910dca
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@ from . import xmlreader
|
||||||
try:
|
try:
|
||||||
_StringTypes = [types.StringType, types.UnicodeType]
|
_StringTypes = [types.StringType, types.UnicodeType]
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
_StringTypes = [types.StringType]
|
try:
|
||||||
|
_StringTypes = [types.StringType]
|
||||||
|
except AttributeError:
|
||||||
|
_StringTypes = [str]
|
||||||
|
|
||||||
# See whether the xmlcharrefreplace error handler is
|
# See whether the xmlcharrefreplace error handler is
|
||||||
# supported
|
# supported
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue