(original) (raw)

Index: xmlrpclib.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/xmlrpclib.py,v retrieving revision 1.32 diff -c -r1.32 xmlrpclib.py *** xmlrpclib.py 2 Nov 2003 09:47:05 -0000 1.32 --- xmlrpclib.py 7 Nov 2003 12:32:56 -0000 *************** *** 895,908 **** """Iterates over the results of a multicall. Exceptions are thrown in response to xmlrpc faults.""" for i in results: ! if type(i) == type({}): raise Fault(i['faultCode'], i['faultString']) ! elif type(i) == type([]): ! yield i[0] else: raise ValueError,\ "unexpected type in multicall result" class MultiCall: """server -> a object used to boxcar method calls --- 895,911 ---- """Iterates over the results of a multicall. Exceptions are thrown in response to xmlrpc faults.""" + out = [] for i in results: ! if isinstance(i, DictType): raise Fault(i['faultCode'], i['faultString']) ! elif isinstance(i, ListType): ! out.append(i[0]) else: raise ValueError,\ "unexpected type in multicall result" + + return out class MultiCall: """server -> a object used to boxcar method calls