From: Guido van Rossum Date: Thu, 15 Feb 2001 13:50:36 +0000 (+0000) Subject: Provide a default for the blocksize arg of storbinary(). X-Git-Tag: v2.1b1~359 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ac83474a3201394ea668d624729883d85f9304a;p=thirdparty%2FPython%2Fcpython.git Provide a default for the blocksize arg of storbinary(). SF patch #103517 by mfx. --- diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 17c681d871d9..6819c1d8ef18 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)