[Python-checkins] r77858 - python/trunk/Doc/library/xmlrpclib.rst

georg.brandl python-checkins at python.org
Sat Jan 30 18:57:49 CET 2010


Author: georg.brandl
Date: Sat Jan 30 18:57:48 2010
New Revision: 77858

Log:
#7802: fix invalid example (heh).

Modified:
   python/trunk/Doc/library/xmlrpclib.rst

Modified: python/trunk/Doc/library/xmlrpclib.rst
==============================================================================
--- python/trunk/Doc/library/xmlrpclib.rst	(original)
+++ python/trunk/Doc/library/xmlrpclib.rst	Sat Jan 30 18:57:48 2010
@@ -414,12 +414,12 @@
    error.
 
 In the following example we're going to intentionally cause a :exc:`ProtocolError`
-by providing an invalid URI::
+by providing an URI that doesn't point to an XMLRPC server::
 
    import xmlrpclib
 
-   # create a ServerProxy with an invalid URI
-   proxy = xmlrpclib.ServerProxy("http://invalidaddress/")
+   # create a ServerProxy with an URI that doesn't respond to XMLRPC requests
+   proxy = xmlrpclib.ServerProxy("http://www.google.com/")
 
    try:
        proxy.some_method()


More information about the Python-checkins mailing list