diff options
author | Guido van Rossum <guido@python.org> | 2001-02-15 13:50:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-02-15 13:50:36 (GMT) |
commit | 4ac83474a3201394ea668d624729883d85f9304a (patch) | |
tree | 16377109bb40fd84bb305e9ec65c288733be480a /Lib | |
parent | 8ee06148f98e1f23174575b5a3e41e7d4a0e7f03 (diff) | |
download | cpython-4ac83474a3201394ea668d624729883d85f9304a.zip cpython-4ac83474a3201394ea668d624729883d85f9304a.tar.gz cpython-4ac83474a3201394ea668d624729883d85f9304a.tar.bz2 |
Provide a default for the blocksize arg of storbinary().
SF patch #103517 by mfx.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ftplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 17c681d..6819c1d 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -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) |