mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968) (#25970)
(cherry picked from commit b32c8e9795
)
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
This commit is contained in:
parent
7424105a02
commit
bf309d74a5
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue