[Python-checkins] r58114 - python/trunk/Doc/library/simplexmlrpcserver.rst
georg.brandl
python-checkins at python.org
Wed Sep 12 20:05:58 CEST 2007
Author: georg.brandl
Date: Wed Sep 12 20:05:57 2007
New Revision: 58114
Modified:
python/trunk/Doc/library/simplexmlrpcserver.rst
Log:
Bug #1152: use non-deprecated name in example.
Modified: python/trunk/Doc/library/simplexmlrpcserver.rst
==============================================================================
--- python/trunk/Doc/library/simplexmlrpcserver.rst (original)
+++ python/trunk/Doc/library/simplexmlrpcserver.rst Wed Sep 12 20:05:57 2007
@@ -162,7 +162,7 @@
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
More information about the Python-checkins
mailing list