Skip to content

Commit 837f1b9

Browse files
erlend-aaslandhugovk
authored andcommitted
Docs: mark up the FTP debug levels as a list (pythonGH-114360)
(cherry picked from commit fbc2874) Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 3681eff commit 837f1b9

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
@@ -103,12 +103,15 @@ FTP objects
103103

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

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

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

0 commit comments

Comments
 (0)