summaryrefslogtreecommitdiff
path: root/Doc/library/xmlrpc.client.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-08-08 15:45:56 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2013-08-08 15:45:56 +0300
commita97bbbf84473a2eef376e73f984b5d410fb5954d (patch)
tree98f80f02bc4c1a9d42e2b433d9235cf9cea6a047 /Doc/library/xmlrpc.client.rst
parentbce71b6328b6b766bdb5e8aa82c4bbfa88202374 (diff)
downloadcpython-a97bbbf84473a2eef376e73f984b5d410fb5954d.tar.gz
#18267: make whitespace consistent and fix an operator.
Diffstat (limited to 'Doc/library/xmlrpc.client.rst')
-rw-r--r--Doc/library/xmlrpc.client.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/library/xmlrpc.client.rst b/Doc/library/xmlrpc.client.rst
index a18a625f73..3cb19d1862 100644
--- a/Doc/library/xmlrpc.client.rst
+++ b/Doc/library/xmlrpc.client.rst
@@ -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