From 5071a44567134206fb656a6335a5adae51da7494 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Sat, 20 Jan 2024 23:03:53 +0100 Subject: [PATCH 1/2] Docs: mark up the FTP debug levels as a list --- Doc/library/ftplib.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst index 648956b7b66772..3fc0847fb72ba1 100644 --- a/Doc/library/ftplib.rst +++ b/Doc/library/ftplib.rst @@ -102,12 +102,15 @@ FTP objects .. method:: FTP.set_debuglevel(level) - Set the instance's debugging level. This controls the amount of debugging - output printed. The default, ``0``, produces no debugging output. A value of - ``1`` produces a moderate amount of debugging output, generally a single line - per request. A value of ``2`` or higher produces the maximum amount of - debugging output, logging each line sent and received on the control connection. - + Set the instance's debugging level as an :class:`int`. + This controls the amount of debugging output printed. + The debug levels are: + + * ``0`` (the default): No debug output. + * ``1``: Produce a moderate amount of debug output, + generally a single line per request. + * ``2`` or higher: Produce the maximum amount of debugging output, + logging each line sent and received on the control connection. .. method:: FTP.connect(host='', port=0, timeout=None, source_address=None) From f5e2b9b0b3d65418924c0054413fdafb826044b1 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Sun, 21 Jan 2024 10:13:04 +0100 Subject: [PATCH 2/2] Update Doc/library/ftplib.rst Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- Doc/library/ftplib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst index 3fc0847fb72ba1..16ad3a8b7f2d82 100644 --- a/Doc/library/ftplib.rst +++ b/Doc/library/ftplib.rst @@ -106,7 +106,7 @@ FTP objects This controls the amount of debugging output printed. The debug levels are: - * ``0`` (the default): No debug output. + * ``0`` (default): No debug output. * ``1``: Produce a moderate amount of debug output, generally a single line per request. * ``2`` or higher: Produce the maximum amount of debugging output,