Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ac8347

Browse files
committed
Provide a default for the blocksize arg of storbinary().
SF patch #103517 by mfx.
1 parent 8ee0614 commit 4ac8347

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/ftplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def retrlines(self, cmd, callback = None):
367367
conn.close()
368368
return self.voidresp()
369369

370-
def storbinary(self, cmd, fp, blocksize):
370+
def storbinary(self, cmd, fp, blocksize=8192):
371371
'''Store a file in binary mode.'''
372372
self.voidcmd('TYPE I')
373373
conn = self.transfercmd(cmd)

0 commit comments

Comments
 (0)