File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -439,14 +439,14 @@ A usage example of this class follows. The server code::
439439
440440 from xmlrpc.server import SimpleXMLRPCServer
441441
442- def add(x,y):
443- return x+ y
442+ def add(x, y):
443+ return x + y
444444
445445 def subtract(x, y):
446- return x- y
446+ return x - y
447447
448448 def multiply(x, y):
449- return x* y
449+ return x * y
450450
451451 def divide(x, y):
452452 return x // y
@@ -467,13 +467,13 @@ The client code for the preceding server::
467467
468468 proxy = xmlrpc.client.ServerProxy("http://localhost:8000/")
469469 multicall = xmlrpc.client.MultiCall(proxy)
470- multicall.add(7,3)
471- multicall.subtract(7,3)
472- multicall.multiply(7,3)
473- multicall.divide(7,3)
470+ multicall.add(7, 3)
471+ multicall.subtract(7, 3)
472+ multicall.multiply(7, 3)
473+ multicall.divide(7, 3)
474474 result = multicall()
475475
476- print("7+3=%d, 7-3=%d, 7*3=%d, 7/3=%d" % tuple(result))
476+ print("7+3=%d, 7-3=%d, 7*3=%d, 7// 3=%d" % tuple(result))
477477
478478
479479Convenience Functions
You can’t perform that action at this time.
0 commit comments