mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
ftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652) (GH-657)
This commit is contained in:
parent
7927abba34
commit
388e2568fc
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
|
||||||
|
|
||||||
Retrieve a file in binary transfer mode. *cmd* should be an appropriate
|
Retrieve a file in binary transfer mode. *cmd* should be an appropriate
|
||||||
``RETR`` command: ``'RETR filename'``. The *callback* function is called for
|
``RETR`` command: ``'RETR filename'``. The *callback* function is called for
|
||||||
each block of data received, with a single string argument giving the data
|
each block of data received, with a single bytes argument giving the data
|
||||||
block. The optional *blocksize* argument specifies the maximum chunk size to
|
block. The optional *blocksize* argument specifies the maximum chunk size to
|
||||||
read on the low-level socket object created to do the actual transfer (which
|
read on the low-level socket object created to do the actual transfer (which
|
||||||
will also be the largest size of the data blocks passed to *callback*). A
|
will also be the largest size of the data blocks passed to *callback*). A
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue