8000 Fix fall-out of str.decode removal. · python/cpython@261f9df · GitHub
[go: up one dir, main page]

Skip to content

Commit 261f9df

Browse files
committed
Fix fall-out of str.decode removal.
1 parent b3922cb commit 261f9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/xmlrpclib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _stringify(string):
167167
# convert to 7-bit ascii if possible
168168
try:
169169
return string.decode("ascii")
170-
except (UnicodeError, TypeError):
170+
except (UnicodeError, TypeError, AttributeError):
171171
return string
172172

173173
__version__ = "1.0.1"

0 commit comments

Comments
 (0)
0