Provide a default for the blocksize arg of storbinary().

SF patch #103517 by mfx.
This commit is contained in:
Guido van Rossum 2001-02-15 13:50:36 +00:00
parent 8ee06148f9
commit 4ac83474a3
1 changed files with 1 additions and 1 deletions

View File

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