mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
One further change.
This commit is contained in:
parent
54a40cb81f
commit
25a29a9534
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ def _stringify(string):
|
|||
# convert to 7-bit ascii if possible
|
||||
try:
|
||||
return string.decode("ascii")
|
||||
except UnicodeError:
|
||||
except (UnicodeError, TypeError):
|
||||
return string
|
||||
|
||||
__version__ = "1.0.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue