Skip to content

Commit fbc2874

Browse files
Docs: mark up the FTP debug levels as a list (#114360)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent b04c500 commit fbc2874

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Doc/library/ftplib.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,15 @@ FTP objects
102102

103103
.. method:: FTP.set_debuglevel(level)
104104

105-
Set the instance's debugging level. This controls the amount of debugging
106-
output printed. The default, ``0``, produces no debugging output. A value of
107-
``1`` produces a moderate amount of debugging output, generally a single line
108-
per request. A value of ``2`` or higher produces the maximum amount of
109-
debugging output, logging each line sent and received on the control connection.
110-
105+
Set the instance's debugging level as an :class:`int`.
106+
This controls the amount of debugging output printed.
107+
The debug levels are:
108+
109+
* ``0`` (default): No debug output.
110+
* ``1``: Produce a moderate amount of debug output,
111+
generally a single line per request.
112+
* ``2`` or higher: Produce the maximum amount of debugging output,
113+
logging each line sent and received on the control connection.
111114

112115
.. method:: FTP.connect(host='', port=0, timeout=None, source_address=None)
113116

0 commit comments

Comments
 (0)