mirror of
https://github.com/python/cpython.git
synced 2026-01-25 08:42:15 +00:00
Bug #1152: use non-deprecated name in example.
This commit is contained in:
parent
0001422a0a
commit
bb07a7df91
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue