Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93f3910

Browse files
committed
types.StringType is gone, use str directly instead.
1 parent 865b003 commit 93f3910

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/xml/sax/saxutils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
try:
1111
_StringTypes = [types.StringType, types.UnicodeType]
1212
except AttributeError:
13-
_StringTypes = [types.StringType]
13+
try:
14+
_StringTypes = [types.StringType]
15+
except AttributeError:
16+
_StringTypes = [str]
1417

1518
# See whether the xmlcharrefreplace error handler is
1619
# supported

0 commit comments

Comments
 (0)