summaryrefslogtreecommitdiffstats
path: root/Doc/library/simplexmlrpcserver.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/simplexmlrpcserver.rst')
-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 2288907..8533bf8 100644
--- a/Doc/library/simplexmlrpcserver.rst
+++ b/Doc/library/simplexmlrpcserver.rst
@@ -142,7 +142,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