Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79016e1

Browse files
committed
#18267: make whitespace consistent and fix an operator.
1 parent 66f2ea0 commit 79016e1

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Doc/library/xmlrpc.client.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

479479
Convenience Functions

0 commit comments

Comments
 (0)