@@ -270,12 +270,12 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
270270.. method :: FTP.storbinary(cmd, file, blocksize=8192, callback=None, rest=None)
271271
272272 Store a file in binary transfer mode. *cmd * should be an appropriate
273- ``STOR `` command: ``"STOR filename" ``. *file * is an open :term: `file object `
274- which is read until EOF using its :meth: `read ` method in blocks of size
275- *blocksize * to provide the data to be stored. The * blocksize * argument
276- defaults to 8192. *callback * is an optional single parameter callable that
277- is called on each block of data after it is sent. * rest * means the same thing
278- as in the :meth: `transfercmd ` method.
273+ ``STOR `` command: ``"STOR filename" ``. *file * is a :term: `file object `
274+ (opened in binary mode) which is read until EOF using its :meth: `read `
275+ method in blocks of size *blocksize * to provide the data to be stored.
276+ The * blocksize * argument defaults to 8192. *callback * is an optional single
277+ parameter callable that is called on each block of data after it is sent.
278+ * rest * means the same thing as in the :meth: `transfercmd ` method.
279279
280280 .. versionchanged :: 3.2
281281 *rest * parameter added.
@@ -285,9 +285,9 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
285285
286286 Store a file in ASCII transfer mode. *cmd * should be an appropriate
287287 ``STOR `` command (see :meth: `storbinary `). Lines are read until EOF from the
288- open :term: `file object ` *file * using its :meth: `readline ` method to provide
289- the data to be stored. *callback * is an optional single parameter callable
290- that is called on each line after it is sent.
288+ :term: `file object ` *file * (opened in binary mode) using its :meth: `readline `
289+ method to provide the data to be stored. *callback * is an optional single
290+ parameter callable that is called on each line after it is sent.
291291
292292
293293.. method :: FTP.transfercmd(cmd, rest=None)
0 commit comments