Provide a default for the blocksize arg of storbinary().
SF patch #103517 by mfx.
This commit is contained in:
parent
8ee06148f9
commit
4ac83474a3
|
@ -367,7 +367,7 @@ class FTP:
|
|||
conn.close()
|
||||
return self.voidresp()
|
||||
|
||||
def storbinary(self, cmd, fp, blocksize):
|
||||
def storbinary(self, cmd, fp, blocksize=8192):
|
||||
'''Store a file in binary mode.'''
|
||||
self.voidcmd('TYPE I')
|
||||
conn = self.transfercmd(cmd)
|
||||
|
|
Loading…
Reference in New Issue