summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpclib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 22:31:36 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 22:31:36 (GMT)
commit25a29a9534ea8bbfce297eb92c82741833fe04eb (patch)
treeaaaf7ea1d68f9ba51dd1f07ba869f4b67a2292b6 /Lib/xmlrpclib.py
parent54a40cb81f2bbc7ec263196eaa4ce05151ab93ce (diff)
downloadcpython-25a29a9534ea8bbfce297eb92c82741833fe04eb.zip
cpython-25a29a9534ea8bbfce297eb92c82741833fe04eb.tar.gz
cpython-25a29a9534ea8bbfce297eb92c82741833fe04eb.tar.bz2
One further change.
Diffstat (limited to 'Lib/xmlrpclib.py')
-rw-r--r--Lib/xmlrpclib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py
index 586dc4c..ac36b62 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"