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
b2fdafe3
Commit
b2fdafe3
authored
Oct 08, 2014
by
Berker Peksag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22576: Fix signatures of FTP.storbinary() and FTP.storlines() methods.
The correct parameter name is "fp", not "file".
parent
2ce95d7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/library/ftplib.rst
Doc/library/ftplib.rst
+4
-4
No files found.
Doc/library/ftplib.rst
View file @
b2fdafe3
...
@@ -262,10 +262,10 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
...
@@ -262,10 +262,10 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
Passive mode is on by default.
Passive mode is on by default.
.. method:: FTP.storbinary(cmd, f
ile
, blocksize=8192, callback=None, rest=None)
.. method:: FTP.storbinary(cmd, f
p
, blocksize=8192, callback=None, rest=None)
Store a file in binary transfer mode. *cmd* should be an appropriate
Store a file in binary transfer mode. *cmd* should be an appropriate
``STOR`` command: ``"STOR filename"``. *f
ile
* is a :term:`file object`
``STOR`` command: ``"STOR filename"``. *f
p
* is a :term:`file object`
(opened in binary mode) which is read until EOF using its :meth:`~io.IOBase.read`
(opened in binary mode) which is read until EOF using its :meth:`~io.IOBase.read`
method in blocks of size *blocksize* to provide the data to be stored.
method in blocks of size *blocksize* to provide the data to be stored.
The *blocksize* argument defaults to 8192. *callback* is an optional single
The *blocksize* argument defaults to 8192. *callback* is an optional single
...
@@ -276,11 +276,11 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
...
@@ -276,11 +276,11 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
*rest* parameter added.
*rest* parameter added.
.. method:: FTP.storlines(cmd, f
ile
, callback=None)
.. method:: FTP.storlines(cmd, f
p
, callback=None)
Store a file in ASCII transfer mode. *cmd* should be an appropriate
Store a file in ASCII transfer mode. *cmd* should be an appropriate
``STOR`` command (see :meth:`storbinary`). Lines are read until EOF from the
``STOR`` command (see :meth:`storbinary`). Lines are read until EOF from the
:term:`file object` *f
ile
* (opened in binary mode) using its :meth:`~io.IOBase.readline`
:term:`file object` *f
p
* (opened in binary mode) using its :meth:`~io.IOBase.readline`
method to provide the data to be stored. *callback* is an optional single
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.
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