]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43354: xmlrpc: Fix type documentation for Fault.faultCode (GH-24707)
authorJürgen Gmach <juergen.gmach@googlemail.com>
Fri, 26 Mar 2021 21:09:09 +0000 (22:09 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Mar 2021 21:09:09 +0000 (14:09 -0700)
The type of `faultCode` has to be an `int` instead of a `str`.

cf http://xmlrpc.com/spec.md

Pinging @pganssle

Doc/library/xmlrpc.client.rst
Misc/NEWS.d/next/Documentation/2021-03-02-12-55-34.bpo-43354.ezZYkx.rst [new file with mode: 0644]

index 32403819531aa82d02e4935de5fd229d30839f6a..51279b35fd71b7a623b399d9200937cc985f448a 100644 (file)
@@ -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 (file)
index 0000000..1a8743c
--- /dev/null
@@ -0,0 +1 @@
+Fix type documentation for ``Fault.faultCode``; the type has to be ``int`` instead of ``str``.
\ No newline at end of file