From 261f9df18dce95075c6176da0cf3d6fd98ef45a4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 31 Aug 2007 14:07:27 +0000 Subject: [PATCH] Fix fall-out of str.decode removal. --- Lib/xmlrpclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index 60b05b9711..e08d405543 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" -- 2.49.0