From 4ac83474a3201394ea668d624729883d85f9304a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 15 Feb 2001 13:50:36 +0000 Subject: [PATCH] Provide a default for the blocksize arg of storbinary(). SF patch #103517 by mfx. --- Lib/ftplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 17c681d871d..6819c1d8ef1 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -367,7 +367,7 @@ def retrlines(self, cmd, callback = None): 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)