]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
One further change.
authorGuido van Rossum <guido@python.org>
Mon, 27 Aug 2007 22:31:36 +0000 (22:31 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Aug 2007 22:31:36 +0000 (22:31 +0000)
Lib/xmlrpclib.py

index 586dc4ca85dde5efe9bb9367dfb0db79667b71f6..ac36b62ca328e5fdf024bdc2360d52cac3a5c306 100644 (file)
@@ -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"