]> granicus.if.org Git - python/commitdiff
Provide a default for the blocksize arg of storbinary().
authorGuido van Rossum <guido@python.org>
Thu, 15 Feb 2001 13:50:36 +0000 (13:50 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 15 Feb 2001 13:50:36 +0000 (13:50 +0000)
SF patch #103517 by mfx.

Lib/ftplib.py

index 17c681d871d9c4f1c2178fc970c940478384c2c4..6819c1d8ef1864f894d092f4c728d2aebd335256 100644 (file)
@@ -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)