summaryrefslogtreecommitdiffstats
path: root/Lib/ftplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-03 19:34:14 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-03 19:34:14 (GMT)
commitab76af3d65812005f254166433efde43554431ad (patch)
tree93aaa7f2dcc52c4ba07033b3ed08b8fb4b69bac8 /Lib/ftplib.py
parent98ee50b5a458b9aaa20ae6a19baea9ecc0d453fa (diff)
downloadcpython-ab76af3d65812005f254166433efde43554431ad.zip
cpython-ab76af3d65812005f254166433efde43554431ad.tar.gz
cpython-ab76af3d65812005f254166433efde43554431ad.tar.bz2
Provide default for blocksize on retrbinary (Skip Montanaro).
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r--Lib/ftplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index ec7d479..024a0fa 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -317,7 +317,7 @@ class FTP:
raise error_reply, resp
return resp
- def retrbinary(self, cmd, callback, blocksize):
+ def retrbinary(self, cmd, callback, blocksize=8192):
'''Retrieve data in binary mode.
The argument is a RETR command.
The callback function is called for each block.