]> granicus.if.org Git - python/commitdiff
Closes #18267: use floor division in code example
authorAndrew Kuchling <amk@amk.ca>
Fri, 21 Jun 2013 01:33:05 +0000 (21:33 -0400)
committerAndrew Kuchling <amk@amk.ca>
Fri, 21 Jun 2013 01:33:05 +0000 (21:33 -0400)
Doc/library/xmlrpc.client.rst

index bc4d4aa0640560045a2d8733693717760857453c..a18a625f7310fd769e4d188f91f797850d256a7e 100644 (file)
@@ -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))