mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove trailing whitespace.
This commit is contained in:
parent
3d3558a465
commit
48310cd3f2
127 changed files with 825 additions and 825 deletions
|
@ -126,7 +126,7 @@ Server code::
|
|||
requestHandler=RequestHandler)
|
||||
server.register_introspection_functions()
|
||||
|
||||
# Register pow() function; this will use the value of
|
||||
# Register pow() function; this will use the value of
|
||||
# pow.__name__ as the name, which is just 'pow'.
|
||||
server.register_function(pow)
|
||||
|
||||
|
@ -135,10 +135,10 @@ Server code::
|
|||
return x + y
|
||||
server.register_function(adder_function, 'add')
|
||||
|
||||
# Register an instance; all the methods of the instance are
|
||||
# Register an instance; all the methods of the instance are
|
||||
# published as XML-RPC methods (in this case, just 'div').
|
||||
class MyFuncs:
|
||||
def div(self, x, y):
|
||||
def div(self, x, y):
|
||||
return x // y
|
||||
|
||||
server.register_instance(MyFuncs())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue