Skip to content

Commit 3eb2787

Browse files
[3.14] gh-151943: Fix Sphinx reference warnings in Doc/library/xmlrpc.client.rst (GH-158484) (#162768)
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 6c0c015 commit 3eb2787

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
@@ -42,8 +42,8 @@ between conformable Python objects and XML on the wire.
4242
remote XML-RPC server. The required first argument is a URI (Uniform Resource
4343
Indicator), and will normally be the URL of the server. The optional second
4444
argument is a transport factory instance; by default it is an internal
45-
:class:`SafeTransport` instance for https: URLs and an internal HTTP
46-
:class:`Transport` instance otherwise. The optional third argument is an
45+
:class:`!SafeTransport` instance for https: URLs and an internal HTTP
46+
:class:`!Transport` instance otherwise. The optional third argument is an
4747
encoding, by default UTF-8. The optional fourth argument is a debugging flag.
4848

4949
The following parameters govern the use of the returned proxy instance.
@@ -145,7 +145,7 @@ between conformable Python objects and XML on the wire.
145145
via XML-RPC, use :class:`bytes` or :class:`bytearray` classes or the
146146
:class:`Binary` wrapper class described below.
147147

148-
:class:`Server` is retained as an alias for :class:`ServerProxy` for backwards
148+
:class:`!Server` is retained as an alias for :class:`ServerProxy` for backwards
149149
compatibility. New code should use :class:`ServerProxy`.
150150

151151
.. versionchanged:: 3.5
@@ -184,7 +184,7 @@ returning a value, which may be either returned data in a conformant type or a
184184
:class:`Fault` or :class:`ProtocolError` object indicating an error.
185185

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

189189

190190
.. method:: ServerProxy.system.listMethods()
@@ -362,6 +362,23 @@ The client gets the image and saves it to a file::
362362
with open("fetched_python_logo.jpg", "wb") as handle:
363363
handle.write(proxy.python_logo().data)
364364

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

367384
Fault Objects

‎Doc/tools/.nitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ Doc/library/wsgiref.rst
2121
Doc/library/xml.dom.minidom.rst
2222
Doc/library/xml.sax.reader.rst
2323
Doc/library/xml.sax.rst
24-
Doc/library/xmlrpc.client.rst
2524
Doc/library/xmlrpc.server.rst

0 commit comments

Comments
 (0)