mirror of https://github.com/python/cpython
Bug #1152: use non-deprecated name in example.
This commit is contained in:
parent
0001422a0a
commit
bb07a7df91
|
@ -162,7 +162,7 @@ server::
|
|||
|
||||
import xmlrpclib
|
||||
|
||||
s = xmlrpclib.Server('http://localhost:8000')
|
||||
s = xmlrpclib.ServerProxy('http://localhost:8000')
|
||||
print s.pow(2,3) # Returns 2**3 = 8
|
||||
print s.add(2,3) # Returns 5
|
||||
print s.div(5,2) # Returns 5//2 = 2
|
||||
|
|
Loading…
Reference in New Issue