]> granicus.if.org Git - python/commitdiff
#7802: fix invalid example (heh).
authorGeorg Brandl <georg@python.org>
Sat, 30 Jan 2010 17:57:48 +0000 (17:57 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 30 Jan 2010 17:57:48 +0000 (17:57 +0000)
Doc/library/xmlrpclib.rst

index f2b47369647ecb3c631bf126f91e8fe25d33ab15..cc2e8b632fd0decd34b538627a3ba0921175f955 100644 (file)
@@ -414,12 +414,12 @@ does not exist).  It has the following members:
    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()