summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJürgen Gmach <juergen.gmach@googlemail.com>2021-03-26 21:09:09 (GMT)
committerGitHub <noreply@github.com>2021-03-26 21:09:09 (GMT)
commit027b6699276ed8d9f68425697ac89bf61e54e6b9 (patch)
tree38d77950e23cfc59d07f8e13296176fede59776e
parent1899087b21119c5c64cd41619b542c0bf0ab5751 (diff)
downloadcpython-027b6699276ed8d9f68425697ac89bf61e54e6b9.zip
cpython-027b6699276ed8d9f68425697ac89bf61e54e6b9.tar.gz
cpython-027b6699276ed8d9f68425697ac89bf61e54e6b9.tar.bz2
bpo-43354: xmlrpc: Fix type documentation for Fault.faultCode (GH-24707)
The type of `faultCode` has to be an `int` instead of a `str`. cf http://xmlrpc.com/spec.md Pinging @pganssle
-rw-r--r--Doc/library/xmlrpc.client.rst2
-rw-r--r--Misc/NEWS.d/next/Documentation/2021-03-02-12-55-34.bpo-43354.ezZYkx.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/xmlrpc.client.rst b/Doc/library/xmlrpc.client.rst
index 3240381..51279b3 100644
--- a/Doc/library/xmlrpc.client.rst
+++ b/Doc/library/xmlrpc.client.rst
@@ -378,7 +378,7 @@ Fault Objects
.. attribute:: faultCode
- A string indicating the fault type.
+ An int indicating the fault type.
.. attribute:: faultString
diff --git a/Misc/NEWS.d/next/Documentation/2021-03-02-12-55-34.bpo-43354.ezZYkx.rst b/Misc/NEWS.d/next/Documentation/2021-03-02-12-55-34.bpo-43354.ezZYkx.rst
new file mode 100644
index 0000000..1a8743c
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2021-03-02-12-55-34.bpo-43354.ezZYkx.rst
@@ -0,0 +1 @@
+Fix type documentation for ``Fault.faultCode``; the type has to be ``int`` instead of ``str``. \ No newline at end of file