mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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:
|
||||
_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…
Add table
Add a link
Reference in a new issue