mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Provide a default for the blocksize arg of storbinary().
SF patch #103517 by mfx.
This commit is contained in:
parent
8ee06148f9
commit
4ac83474a3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue