[Python-checkins] r60205 - python/trunk/Lib/ftplib.py
gregory.p.smith
python-checkins at python.org
Wed Jan 23 00:15:34 CET 2008
Author: gregory.p.smith
Date: Wed Jan 23 00:15:34 2008
New Revision: 60205
Modified:
python/trunk/Lib/ftplib.py
Log:
docstring and comment updates suggested by Giampaolo Rodola'
Modified: python/trunk/Lib/ftplib.py
==============================================================================
--- python/trunk/Lib/ftplib.py (original)
+++ python/trunk/Lib/ftplib.py Wed Jan 23 00:15:34 2008
@@ -313,7 +313,7 @@
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 @@
"""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 @@
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()
More information about the Python-checkins
mailing list