@@ -262,10 +262,10 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
262
262
Passive mode is on by default.
263
263
264
264
265
- .. method :: FTP.storbinary(cmd, file , blocksize=8192, callback=None, rest=None)
265
+ .. method :: FTP.storbinary(cmd, fp , blocksize=8192, callback=None, rest=None)
266
266
267
267
Store a file in binary transfer mode. *cmd * should be an appropriate
268
- ``STOR `` command: ``"STOR filename" ``. *file * is a :term: `file object `
268
+ ``STOR `` command: ``"STOR filename" ``. *fp * is a :term: `file object `
269
269
(opened in binary mode) which is read until EOF using its :meth: `~io.IOBase.read `
270
270
method in blocks of size *blocksize * to provide the data to be stored.
271
271
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
276
*rest * parameter added.
277
277
278
278
279
- .. method :: FTP.storlines(cmd, file , callback=None)
279
+ .. method :: FTP.storlines(cmd, fp , callback=None)
280
280
281
281
Store a file in ASCII transfer mode. *cmd * should be an appropriate
282
282
``STOR `` command (see :meth: `storbinary `). Lines are read until EOF from the
283
- :term: `file object ` *file * (opened in binary mode) using its :meth: `~io.IOBase.readline `
283
+ :term: `file object ` *fp * (opened in binary mode) using its :meth: `~io.IOBase.readline `
284
284
method to provide the data to be stored. *callback * is an optional single
285
285
parameter callable that is called on each line after it is sent.
286
286
0 commit comments