Skip to content

Commit 2eb0c9a

Browse files
[3.15] gh-151943: Fix Sphinx reference warnings in Doc/library/xmlrpc.client.rst (GH-158484) (#162767)
gh-151943: Fix Sphinx reference warnings in `Doc/library/xmlrpc.client.rst` (GH-158484) (cherry picked from commit ebd4a5d) Co-authored-by: Jade <68784313+jang-hs@users.noreply.github.com>
1 parent d45a62a commit 2eb0c9a

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

‎Doc/library/xmlrpc.client.rst‎

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ between conformable Python objects and XML on the wire.
3939
remote XML-RPC server. The required first argument is a URI (Uniform Resource
4040
Indicator), and will normally be the URL of the server. The optional second
4141
argument is a transport factory instance; by default it is an internal
42-
:class:`SafeTransport` instance for https: URLs and an internal HTTP
43-
:class:`Transport` instance otherwise. The optional third argument is an
42+
:class:`!SafeTransport` instance for https: URLs and an internal HTTP
43+
:class:`!Transport` instance otherwise. The optional third argument is an
4444
encoding, by default UTF-8. The optional fourth argument is a debugging flag.
4545

4646
The following parameters govern the use of the returned proxy instance.
@@ -142,7 +142,7 @@ between conformable Python objects and XML on the wire.
142142
via XML-RPC, use :class:`bytes` or :class:`bytearray` classes or the
143143
:class:`Binary` wrapper class described below.
144144

145-
:class:`Server` is retained as an alias for :class:`ServerProxy` for backwards
145+
:class:`!Server` is retained as an alias for :class:`ServerProxy` for backwards
146146
compatibility. New code should use :class:`ServerProxy`.
147147

148148
.. versionchanged:: 3.5
@@ -181,7 +181,7 @@ by returning data in a conformant type or by raising a :class:`Fault` or
181181
:class:`ProtocolError` exception indicating an error.
182182

183183
Servers that support the XML introspection API support some common methods
184-
grouped under the reserved :attr:`~ServerProxy.system` attribute:
184+
grouped under the reserved :attr:`!system` attribute:
185185

186186

187187
.. method:: ServerProxy.system.listMethods()
@@ -359,6 +359,23 @@ The client gets the image and saves it to a file::
359359
with open("fetched_python_logo.jpg", "wb") as handle:
360360
handle.write(proxy.python_logo().data)
361361

362+
.. _error-objects:
363+
364+
Error objects
365+
-------------
366+
367+
.. exception:: Error
368+
369+
Base class of the :exc:`Fault`, :exc:`ProtocolError` and
370+
:exc:`ResponseError` exceptions.
371+
372+
373+
.. exception:: ResponseError
374+
375+
Raised when an XML-RPC response is malformed and cannot be unmarshalled,
376+
for example when it contains an unsupported type tag.
377+
378+
362379
.. _fault-objects:
363380

364381
Fault Objects

‎Doc/tools/.nitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ Doc/library/wsgiref.rst
1818
Doc/library/xml.dom.minidom.rst
1919
Doc/library/xml.sax.reader.rst
2020
Doc/library/xml.sax.rst
21-
Doc/library/xmlrpc.client.rst
2221
Doc/library/xmlrpc.server.rst

0 commit comments

Comments
 (0)