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
4ec14c23
Commit
4ec14c23
authored
Mar 13, 2017
by
Xiang Zhang
Committed by
GitHub
Mar 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix parameter names in ftplib documentation (GH-656)
parent
ee10fb9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Doc/library/ftplib.rst
Doc/library/ftplib.rst
+6
-6
No files found.
Doc/library/ftplib.rst
View file @
4ec14c23
...
...
@@ -243,17 +243,17 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
the trailing CRLF stripped. The default *callback* prints the line to ``sys.stdout``.
.. method:: FTP.set_pasv(
boolean
)
.. method:: FTP.set_pasv(
val
)
Enable "passive" mode if *
boolean* is true, other
disable passive mode. (In
Enable "passive" mode if *
val* is true, otherwise
disable passive mode. (In
Python 2.0 and before, passive mode was off by default; in Python 2.1 and later,
it is on by default.)
.. method:: FTP.storbinary(command, f
ile
[, blocksize, callback, rest])
.. method:: FTP.storbinary(command, f
p
[, blocksize, callback, rest])
Store a file in binary transfer mode. *command* should be an appropriate
``STOR`` command: ``"STOR filename"``. *f
ile
* is an open file object which is
``STOR`` command: ``"STOR filename"``. *f
p
* is an open file object which is
read until EOF using its :meth:`read` method in blocks of size *blocksize* to
provide the data to be stored. The *blocksize* argument defaults to 8192.
*callback* is an optional single parameter callable that is called
...
...
@@ -269,11 +269,11 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
.. versionchanged:: 2.7
*rest* parameter added.
.. method:: FTP.storlines(command, f
ile
[, callback])
.. method:: FTP.storlines(command, f
p
[, callback])
Store a file in ASCII transfer mode. *command* should be an appropriate
``STOR`` command (see :meth:`storbinary`). Lines are read until EOF from the
open file object *f
ile
* using its :meth:`~file.readline` method to provide
open file object *f
p
* using its :meth:`~file.readline` method to provide
the data to be stored. *callback* is an optional single parameter callable
that is called on each line after it is sent.
...
...
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