@@ -243,17 +243,17 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
243
243
the trailing CRLF stripped. The default *callback * prints the line to ``sys.stdout ``.
244
244
245
245
246
- .. method :: FTP.set_pasv(boolean )
246
+ .. method :: FTP.set_pasv(val )
247
247
248
- Enable "passive" mode if *boolean * is true, other disable passive mode. (In
248
+ Enable "passive" mode if *val * is true, otherwise disable passive mode. (In
249
249
Python 2.0 and before, passive mode was off by default; in Python 2.1 and later,
250
250
it is on by default.)
251
251
252
252
253
- .. method :: FTP.storbinary(command, file [, blocksize, callback, rest])
253
+ .. method :: FTP.storbinary(command, fp [, blocksize, callback, rest])
254
254
255
255
Store a file in binary transfer mode. *command * should be an appropriate
256
- ``STOR `` command: ``"STOR filename" ``. *file * is an open file object which is
256
+ ``STOR `` command: ``"STOR filename" ``. *fp * is an open file object which is
257
257
read until EOF using its :meth: `read ` method in blocks of size *blocksize * to
258
258
provide the data to be stored. The *blocksize * argument defaults to 8192.
259
259
*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.
269
269
.. versionchanged :: 2.7
270
270
*rest * parameter added.
271
271
272
- .. method :: FTP.storlines(command, file [, callback])
272
+ .. method :: FTP.storlines(command, fp [, callback])
273
273
274
274
Store a file in ASCII transfer mode. *command * should be an appropriate
275
275
``STOR `` command (see :meth: `storbinary `). Lines are read until EOF from the
276
- open file object *file * using its :meth: `~file.readline ` method to provide
276
+ open file object *fp * using its :meth: `~file.readline ` method to provide
277
277
the data to be stored. *callback * is an optional single parameter callable
278
278
that is called on each line after it is sent.
279
279
0 commit comments