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()
|
conn.close()
|
||||||
return self.voidresp()
|
return self.voidresp()
|
||||||
|
|
||||||
def storbinary(self, cmd, fp, blocksize):
|
def storbinary(self, cmd, fp, blocksize=8192):
|
||||||
'''Store a file in binary mode.'''
|
'''Store a file in binary mode.'''
|
||||||
self.voidcmd('TYPE I')
|
self.voidcmd('TYPE I')
|
||||||
conn = self.transfercmd(cmd)
|
conn = self.transfercmd(cmd)
|
||||||
|
|
Loading…
Reference in New Issue