Skip to content

Commit 1138fb5

Browse files
[3.12] Docs: link to sys.stdout in ftplib docs (GH-114396) (#114397)
(cherry picked from commit de17cf4) Co-authored-by: Erlend E. Aasland <erlend@python.org>
1 parent 00e8c9c commit 1138fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Doc/library/ftplib.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ FTP objects
221221
``NLST`` retrieves a list of file names.
222222
The *callback* function is called for each line with a string argument
223223
containing the line with the trailing CRLF stripped. The default *callback*
224-
prints the line to ``sys.stdout``.
224+
prints the line to :data:`sys.stdout`.
225225

226226

227227
.. method:: FTP.set_pasv(val)
@@ -311,7 +311,7 @@ FTP objects
311311
current server directory). Multiple arguments can be used to pass non-standard
312312
options to the ``LIST`` command. If the last argument is a function, it is used
313313
as a *callback* function as for :meth:`retrlines`; the default prints to
314-
``sys.stdout``. This method returns ``None``.
314+
:data:`sys.stdout`. This method returns ``None``.
315315

316316
.. note:: If your server supports the command, :meth:`mlsd` offers a better API.
317317

0 commit comments

Comments
 (0)