@@ -259,12 +259,12 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
259259.. method :: FTP.storbinary(cmd, file, blocksize=8192, callback=None, rest=None)
260260
261261 Store a file in binary transfer mode. *cmd * should be an appropriate
262- ``STOR `` command: ``"STOR filename" ``. *file * is an open :term: `file object `
263- which is read until EOF using its :meth: `read ` method in blocks of size
264- *blocksize * to provide the data to be stored. The * blocksize * argument
265- defaults to 8192. *callback * is an optional single parameter callable that
266- is called on each block of data after it is sent. * rest * means the same thing
267- as in the :meth: `transfercmd ` method.
262+ ``STOR `` command: ``"STOR filename" ``. *file * is a :term: `file object `
263+ (opened in binary mode) which is read until EOF using its :meth: `read `
264+ method in blocks of size *blocksize * to provide the data to be stored.
265+ The * blocksize * argument defaults to 8192. *callback * is an optional single
266+ parameter callable that is called on each block of data after it is sent.
267+ * rest * means the same thing as in the :meth: `transfercmd ` method.
268268
269269 .. versionchanged :: 3.2
270270 *rest * parameter added.
@@ -274,9 +274,9 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
274274
275275 Store a file in ASCII transfer mode. *cmd * should be an appropriate
276276 ``STOR `` command (see :meth: `storbinary `). Lines are read until EOF from the
277- open :term: `file object ` *file * using its :meth: `readline ` method to provide
278- the data to be stored. *callback * is an optional single parameter callable
279- that is called on each line after it is sent.
277+ :term: `file object ` *file * (opened in binary mode) using its :meth: `readline `
278+ method to provide the data to be stored. *callback * is an optional single
279+ parameter callable that is called on each line after it is sent.
280280
281281
282282.. method :: FTP.transfercmd(cmd, rest=None)
0 commit comments