mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Fix fall-out of str.decode removal.
This commit is contained in:
parent
b3922cb086
commit
261f9df18d
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ def _stringify(string):
|
||||||
# convert to 7-bit ascii if possible
|
# convert to 7-bit ascii if possible
|
||||||
try:
|
try:
|
||||||
return string.decode("ascii")
|
return string.decode("ascii")
|
||||||
except (UnicodeError, TypeError):
|
except (UnicodeError, TypeError, AttributeError):
|
||||||
return string
|
return string
|
||||||
|
|
||||||
__version__ = "1.0.1"
|
__version__ = "1.0.1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue