Provide default for blocksize on retrbinary (Skip Montanaro).

This commit is contained in:
Guido van Rossum 1997-12-03 19:34:14 +00:00
parent 98ee50b5a4
commit ab76af3d65
3 changed files with 11 additions and 9 deletions

View file

@ -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.