Skip to content

Commit

Permalink
Docs: link to sys.stdout in ftplib docs
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jan 21, 2024
1 parent 38768e4 commit be14330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/ftplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ FTP objects
``NLST`` retrieves a list of file names.
The *callback* function is called for each line with a string argument
containing the line with the trailing CRLF stripped. The default *callback*
prints the line to ``sys.stdout``.
prints the line to :data:`sys.stdout`.


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

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

Expand Down

0 comments on commit be14330

Please sign in to comment.