Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4cb196cc
Commit
4cb196cc
authored
Jan 22, 2008
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docstring and comment updates suggested by Giampaolo Rodola'
parent
58a37b3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/ftplib.py
Lib/ftplib.py
+3
-3
No files found.
Lib/ftplib.py
View file @
4cb196cc
...
...
@@ -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 REST
ART
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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment