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

Skip to content

Commit c3db373

Browse files
committed
Closes #18267: use floor division in code example
1 parent 1d7d580 commit c3db373

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/xmlrpc.client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ remote server into a single request [#]_.
435435
is a :term:`generator`; iterating over this generator yields the individual
436436
results.
437437

438-
A usage example of this class follows. The server code ::
438+
A usage example of this class follows. The server code::
439439

440440
from xmlrpc.server import SimpleXMLRPCServer
441441

@@ -449,7 +449,7 @@ A usage example of this class follows. The server code ::
449449
return x*y
450450

451451
def divide(x, y):
452-
return x/y
452+
return x // y
453453

454454
# A simple server with simple arithmetic functions
455455
server = SimpleXMLRPCServer(("localhost", 8000))

0 commit comments

Comments
 (0)