]> granicus.if.org Git - python/commitdiff
Bug #1152: use non-deprecated name in example.
authorGeorg Brandl <georg@python.org>
Wed, 12 Sep 2007 18:05:57 +0000 (18:05 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 12 Sep 2007 18:05:57 +0000 (18:05 +0000)
Doc/library/simplexmlrpcserver.rst

index 51ce8d84c0a63558186bc2099bad53097ee66966..41334f3b108cb96cd0f8a39d91135ae6b7e2fe06 100644 (file)
@@ -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