[Python-checkins] Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968) (#25970)

orsenthil webhook-mailer at python.org
Fri May 7 10:13:25 EDT 2021


https://github.com/python/cpython/commit/bf309d74a578a08b6054e310aaf6b45cfe5c71f9
commit: bf309d74a578a08b6054e310aaf6b45cfe5c71f9
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-05-07T07:13:19-07:00
summary:

Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968) (#25970)

(cherry picked from commit b32c8e97951db46484ba3b646b988bcdc4062199)

Co-authored-by: Senthil Kumaran <senthil at uthcode.com>

Co-authored-by: Senthil Kumaran <senthil at uthcode.com>

files:
M Doc/library/ftplib.rst

diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst
index f4d4cdf9ada9d9..3a9165ac920519 100644
--- a/Doc/library/ftplib.rst
+++ b/Doc/library/ftplib.rst
@@ -28,6 +28,7 @@ Here's a sample session using the :mod:`ftplib` module::
    >>> ftp.login()                     # user anonymous, passwd anonymous@
    '230 Login successful.'
    >>> ftp.cwd('debian')               # change into "debian" directory
+   '250 Directory successfully changed.'
    >>> ftp.retrlines('LIST')           # list directory contents
    -rw-rw-r--    1 1176     1176         1063 Jun 15 10:18 README
    ...
@@ -39,6 +40,7 @@ Here's a sample session using the :mod:`ftplib` module::
    >>>     ftp.retrbinary('RETR README', fp.write)
    '226 Transfer complete.'
    >>> ftp.quit()
+   '221 Goodbye.'
 
 
 The module defines the following items:



More information about the Python-checkins mailing list