diff options
author | Guido van Rossum <guido@python.org> | 2007-08-31 14:07:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-31 14:07:27 (GMT) |
commit | 261f9df18dce95075c6176da0cf3d6fd98ef45a4 (patch) | |
tree | 6923564ecd9f5ba85232b7a4df533fa2171719d1 /Lib/xmlrpclib.py | |
parent | b3922cb086e7085f23ed18229fdcbd09e7eabb65 (diff) | |
download | cpython-261f9df18dce95075c6176da0cf3d6fd98ef45a4.zip cpython-261f9df18dce95075c6176da0cf3d6fd98ef45a4.tar.gz cpython-261f9df18dce95075c6176da0cf3d6fd98ef45a4.tar.bz2 |
Fix fall-out of str.decode removal.
Diffstat (limited to 'Lib/xmlrpclib.py')
-rw-r--r-- | Lib/xmlrpclib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index 60b05b9..e08d405 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -167,7 +167,7 @@ def _stringify(string): # convert to 7-bit ascii if possible try: return string.decode("ascii") - except (UnicodeError, TypeError): + except (UnicodeError, TypeError, AttributeError): return string __version__ = "1.0.1" |