summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-03-13 03:03:36 (GMT)
committerGitHub <noreply@github.com>2017-03-13 03:03:36 (GMT)
commit388e2568fc919a177df2d2949b575c553aea84ac (patch)
treee074faa7ef6205d7f33b508f0ba27dccd339d305
parent7927abba3449e12d0ae3518b722fdfeb383b4039 (diff)
downloadcpython-388e2568fc919a177df2d2949b575c553aea84ac.zip
cpython-388e2568fc919a177df2d2949b575c553aea84ac.tar.gz
cpython-388e2568fc919a177df2d2949b575c553aea84ac.tar.bz2
ftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652) (GH-657)
-rw-r--r--Doc/library/ftplib.rst2
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