summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2021-05-07 14:08:47 (GMT)
committerGitHub <noreply@github.com>2021-05-07 14:08:47 (GMT)
commitb32c8e97951db46484ba3b646b988bcdc4062199 (patch)
tree659d595f1afd9921aeb2f5df367528f8a14e2827 /Doc
parent0988ed09b4c058fabb58a7ea7e757adafcf8763c (diff)
downloadcpython-b32c8e97951db46484ba3b646b988bcdc4062199.zip
cpython-b32c8e97951db46484ba3b646b988bcdc4062199.tar.gz
cpython-b32c8e97951db46484ba3b646b988bcdc4062199.tar.bz2
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/ftplib.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst
index f4d4cdf..3a9165a 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: