summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-30 17:57:48 (GMT)
committerGeorg Brandl <georg@python.org>2010-01-30 17:57:48 (GMT)
commit53ffca5afbe6436b21054997ea33178128035f11 (patch)
tree1e185c7e72839de90eb47f801ae0d335728ffeb5
parent91d26b43c93212130e57eeec255905ca4de9b446 (diff)
downloadcpython-53ffca5afbe6436b21054997ea33178128035f11.zip
cpython-53ffca5afbe6436b21054997ea33178128035f11.tar.gz
cpython-53ffca5afbe6436b21054997ea33178128035f11.tar.bz2
#7802: fix invalid example (heh).
-rw-r--r--Doc/library/xmlrpclib.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/xmlrpclib.rst b/Doc/library/xmlrpclib.rst
index f2b4736..cc2e8b6 100644
--- a/Doc/library/xmlrpclib.rst
+++ b/Doc/library/xmlrpclib.rst
@@ -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()