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

Skip to content

Commit ceb513a

Browse files
committed
Merged revisions 80172 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r80172 | giampaolo.rodola | 2010-04-18 14:55:03 +0200 (dom, 18 apr 2010) | 1 line Fix Issue #3817: 225 is now considered a valid response code for ABOR ........
1 parent 88d7dbd commit ceb513a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/ftplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def abort(self):
237237
if self.debugging > 1: print('*put urgent*', self.sanitize(line))
238238
self.sock.sendall(line, MSG_OOB)
239239
resp = self.getmultiline()
240-
if resp[:3] not in ('426', '226'):
240+
if resp[:3] not in ('426', '225', '226'):
241241
raise error_proto(resp)
242242

243243
def sendcmd(self, cmd):

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ C-API
315315
Library
316316
-------
317317

318+
- Issue #3817: ftplib.FTP.abort() method now considers 225 a valid response
319+
code as stated in RFC-959 at chapter 5.4.
320+
318321
- Issue #8394: _ctypes.dlopen() accepts bytes, bytearray and str with
319322
surrogates.
320323

0 commit comments

Comments
 (0)