summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-12 18:05:57 (GMT)
committerGeorg Brandl <georg@python.org>2007-09-12 18:05:57 (GMT)
commitbb07a7df9157a317f2edabe53767cff06ac2d528 (patch)
tree178836e0f95b2985edb3e96e9bbc9cdeec7e0b28 /Doc/library
parent0001422a0a4995f4a8208a7e169ffd7f25126ecf (diff)
downloadcpython-bb07a7df9157a317f2edabe53767cff06ac2d528.zip
cpython-bb07a7df9157a317f2edabe53767cff06ac2d528.tar.gz
cpython-bb07a7df9157a317f2edabe53767cff06ac2d528.tar.bz2
Bug #1152: use non-deprecated name in example.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/simplexmlrpcserver.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/simplexmlrpcserver.rst b/Doc/library/simplexmlrpcserver.rst
index 51ce8d8..41334f3 100644
--- a/Doc/library/simplexmlrpcserver.rst
+++ b/Doc/library/simplexmlrpcserver.rst
@@ -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