Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
53ffca5a
Commit
53ffca5a
authored
Jan 30, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7802: fix invalid example (heh).
parent
91d26b43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/library/xmlrpclib.rst
Doc/library/xmlrpclib.rst
+3
-3
No files found.
Doc/library/xmlrpclib.rst
View file @
53ffca5a
...
...
@@ -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()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment