]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968)
authorSenthil Kumaran <senthil@uthcode.com>
Fri, 7 May 2021 14:08:47 +0000 (07:08 -0700)
committerGitHub <noreply@github.com>
Fri, 7 May 2021 14:08:47 +0000 (07:08 -0700)
Doc/library/ftplib.rst

index f4d4cdf9ada9d98403b15a9ac7ffd475ec28311d..3a9165ac9205191331e81ea50de86bdcaa0a5f26 100644 (file)
@@ -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: