Skip to content

Commit 59883bb

Browse files
authored
ftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652) (GH-658)
1 parent 3a8098f commit 59883bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/ftplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
228228

229229
Retrieve a file in binary transfer mode. *cmd* should be an appropriate
230230
``RETR`` command: ``'RETR filename'``. The *callback* function is called for
231-
each block of data received, with a single string argument giving the data
231+
each block of data received, with a single bytes argument giving the data
232232
block. The optional *blocksize* argument specifies the maximum chunk size to
233233
read on the low-level socket object created to do the actual transfer (which
234234
will also be the largest size of the data blocks passed to *callback*). A

0 commit comments

Comments
 (0)