Commit 261f9df1 authored by Guido van Rossum's avatar Guido van Rossum

Fix fall-out of str.decode removal.

parent b3922cb0
...@@ -167,7 +167,7 @@ def _stringify(string): ...@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment