diff options
author | Andrew Kuchling <amk@amk.ca> | 2013-06-21 01:33:05 (GMT) |
---|---|---|
committer | Andrew Kuchling <amk@amk.ca> | 2013-06-21 01:33:05 (GMT) |
commit | c3db3739aae4d28753776a5f30f21f5a04420151 (patch) | |
tree | 034c7cfdd620e0a686808e927d4945b555711c34 /Doc/library/xmlrpc.client.rst | |
parent | 1d7d580d0edc2884a32a8592f2f3a098d8397740 (diff) | |
download | cpython-c3db3739aae4d28753776a5f30f21f5a04420151.zip cpython-c3db3739aae4d28753776a5f30f21f5a04420151.tar.gz cpython-c3db3739aae4d28753776a5f30f21f5a04420151.tar.bz2 |
Closes #18267: use floor division in code example
Diffstat (limited to 'Doc/library/xmlrpc.client.rst')
-rw-r--r-- | Doc/library/xmlrpc.client.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/xmlrpc.client.rst b/Doc/library/xmlrpc.client.rst index bc4d4aa..a18a625 100644 --- a/Doc/library/xmlrpc.client.rst +++ b/Doc/library/xmlrpc.client.rst @@ -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 @@ -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)) |