diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2017-03-13 02:51:27 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2017-03-13 02:51:27 (GMT) |
commit | 9e52c907b5511393ab7e44321e9521fe0967e34d (patch) | |
tree | 435328f35e635d101bd9d9ca76dd0d8de2d4a54d /Doc | |
parent | 7bb6ac76b27efc7260b17b03362f60a4106a4805 (diff) | |
download | cpython-9e52c907b5511393ab7e44321e9521fe0967e34d.zip cpython-9e52c907b5511393ab7e44321e9521fe0967e34d.tar.gz cpython-9e52c907b5511393ab7e44321e9521fe0967e34d.tar.bz2 |
ftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ftplib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst index 1153ce7..7291dfe8 100644 --- a/Doc/library/ftplib.rst +++ b/Doc/library/ftplib.rst @@ -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 ``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 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 |