Commit 344e2f8d authored by Guido van Rossum's avatar Guido van Rossum

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

SF patch #103517 by mfx.
parent aa3e94dc
...@@ -367,7 +367,7 @@ class FTP: ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment