diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-07-12 07:53:04 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-07-12 07:53:04 (GMT) |
commit | 541342f82cf5819a9c6bbe80426d3074d5f229c3 (patch) | |
tree | 8ec713ea55836615f0c430d1e4e548e01db6e4f9 /Lib | |
parent | 162f081fb3c3e68e08e477a87311121fd5b72b18 (diff) | |
download | cpython-541342f82cf5819a9c6bbe80426d3074d5f229c3.zip cpython-541342f82cf5819a9c6bbe80426d3074d5f229c3.tar.gz cpython-541342f82cf5819a9c6bbe80426d3074d5f229c3.tar.bz2 |
Patch #764470: Fix marshalling of faults. Will backport to 2.2.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/xmlrpclib.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index a873f77..e67f2f0 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -44,6 +44,12 @@ # 2002-05-15 fl Added error constants (from Andrew Kuchling) # 2002-06-27 fl Merged with Python CVS version # 2002-10-22 fl Added basic authentication (based on code from Phillip Eby) +# 2003-01-22 sm Add support for the bool type +# 2003-02-27 gvr Remove apply calls +# 2003-04-24 sm Use cStringIO if available +# 2003-04-25 ak Add support for nil +# 2003-06-15 gn Add support for time.struct_time +# 2003-07-12 gp Correct marshalling of Faults # # Copyright (c) 1999-2002 by Secret Labs AB. # Copyright (c) 1999-2002 by Fredrik Lundh. @@ -581,7 +587,9 @@ class Marshaller: if isinstance(values, Fault): # fault instance write("<fault>\n") - dump(vars(values), write) + dump({'faultCode': values.faultCode, + 'faultString': values.faultString}, + write) write("</fault>\n") else: # parameter block |