commit | ab76af3d65812005f254166433efde43554431ad | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Dec 03 19:34:14 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Dec 03 19:34:14 1997 +0000 |
tree | 93aaa7f2dcc52c4ba07033b3ed08b8fb4b69bac8 | |
parent | 98ee50b5a458b9aaa20ae6a19baea9ecc0d453fa [diff] [blame] |
Provide default for blocksize on retrbinary (Skip Montanaro).
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 @@ 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.