Kaydet (Commit) 53ffca5a authored tarafından Georg Brandl's avatar Georg Brandl

#7802: fix invalid example (heh).

üst 91d26b43
...@@ -414,12 +414,12 @@ does not exist). It has the following members: ...@@ -414,12 +414,12 @@ does not exist). It has the following members:
error. error.
In the following example we're going to intentionally cause a :exc:`ProtocolError` 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 import xmlrpclib
# create a ServerProxy with an invalid URI # create a ServerProxy with an URI that doesn't respond to XMLRPC requests
proxy = xmlrpclib.ServerProxy("http://invalidaddress/") proxy = xmlrpclib.ServerProxy("http://www.google.com/")
try: try:
proxy.some_method() proxy.some_method()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment