[3.11] Docs: link to sys.stdout in ftplib docs (GH-114396) (#114398)

(cherry picked from commit de17cf444a)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
Miss Islington (bot) 2024-01-21 18:47:48 +01:00 committed by GitHub
parent 3bd4c3a86c
commit a4587c1846
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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)
@ -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.