#18267: make whitespace consistent and fix an operator.

This commit is contained in:
Ezio Melotti 2013-08-08 15:45:56 +03:00
parent 66f2ea042a
commit 79016e1d55
1 changed files with 9 additions and 9 deletions

View File

@ -439,14 +439,14 @@ A usage example of this class follows. The server code::
from xmlrpc.server import SimpleXMLRPCServer
def add(x,y):
return x+y
def add(x, y):
return x + y
def subtract(x, y):
return x-y
return x - y
def multiply(x, y):
return x*y
return x * y
def divide(x, y):
return x // y
@ -467,13 +467,13 @@ The client code for the preceding server::
proxy = xmlrpc.client.ServerProxy("http://localhost:8000/")
multicall = xmlrpc.client.MultiCall(proxy)
multicall.add(7,3)
multicall.subtract(7,3)
multicall.multiply(7,3)
multicall.divide(7,3)
multicall.add(7, 3)
multicall.subtract(7, 3)
multicall.multiply(7, 3)
multicall.divide(7, 3)
result = multicall()
print("7+3=%d, 7-3=%d, 7*3=%d, 7/3=%d" % tuple(result))
print("7+3=%d, 7-3=%d, 7*3=%d, 7//3=%d" % tuple(result))
Convenience Functions