From: Guido van Rossum Date: Mon, 27 Aug 2007 22:31:36 +0000 (+0000) Subject: One further change. X-Git-Tag: v3.0a1~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25a29a9534ea8bbfce297eb92c82741833fe04eb;p=thirdparty%2FPython%2Fcpython.git One further change. --- diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index 586dc4ca85dd..ac36b62ca328 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: + except (UnicodeError, TypeError): return string __version__ = "1.0.1"