summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-01-22 23:15:34 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-01-22 23:15:34 (GMT)
commit2230bcfe24d6b28719aa6ef1c483a619e1960b6a (patch)
treedcf632000712c385fca8a0fbeaf5b666f3c0ea1e /Lib
parent2dec48d1c56d6d920b86d04b9f6ac1a77ff4d301 (diff)
downloadcpython-2230bcfe24d6b28719aa6ef1c483a619e1960b6a.zip
cpython-2230bcfe24d6b28719aa6ef1c483a619e1960b6a.tar.gz
cpython-2230bcfe24d6b28719aa6ef1c483a619e1960b6a.tar.bz2
docstring and comment updates suggested by Giampaolo Rodola'
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ftplib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 61d4882..3a9f994 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -313,7 +313,7 @@ class FTP:
expected size may be None if it could not be determined.
Optional `rest' argument can be a string that is sent as the
- argument to a RESTART command. This is essentially a server
+ argument to a REST command. This is essentially a server
marker used to tell the server to skip over any data up to the
given marker.
"""
@@ -403,7 +403,7 @@ class FTP:
"""Retrieve data in line mode. A new port is created for you.
Args:
- cmd: A RETR or LIST command.
+ cmd: A RETR, LIST, NLST, or MLSD command.
callback: An optional single parameter callable that is called
for each line with the trailing CRLF stripped.
[default: print_line()]
@@ -539,7 +539,7 @@ class FTP:
def size(self, filename):
'''Retrieve the size of a file.'''
- # Note that the RFC doesn't say anything about 'SIZE'
+ # The SIZE command is defined in RFC-3659
resp = self.sendcmd('SIZE ' + filename)
if resp[:3] == '213':
s = resp[3:].strip()