mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Provide default for blocksize on retrbinary (Skip Montanaro).
This commit is contained in:
parent
98ee50b5a4
commit
ab76af3d65
3 changed files with 11 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue