Skip to content

Commit

Permalink
Closes #18267: use floor division in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
akuchling committed Jun 21, 2013
1 parent 9230058 commit 3ad12c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/xmlrpc.client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ remote server into a single request [#]_.
is a :term:`generator`; iterating over this generator yields the individual
results.

A usage example of this class follows. The server code ::
A usage example of this class follows. The server code::

from xmlrpc.server import SimpleXMLRPCServer

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

def divide(x, y):
return x/y
return x // y

# A simple server with simple arithmetic functions
server = SimpleXMLRPCServer(("localhost", 8000))
Expand Down

0 comments on commit 3ad12c2

Please sign in to comment.