We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88d7df commit 22357e1Copy full SHA for 22357e1
2 files changed
Lib/ftplib.py
@@ -236,7 +236,7 @@ def abort(self):
236
if self.debugging > 1: print('*put urgent*', self.sanitize(line))
237
self.sock.sendall(line, MSG_OOB)
238
resp = self.getmultiline()
239
- if resp[:3] not in ('426', '226'):
+ if resp[:3] not in ('426', '225', '226'):
240
raise error_proto(resp)
241
242
def sendcmd(self, cmd):
Misc/NEWS
@@ -31,6 +31,9 @@ Core and Builtins
31
Library
32
-------
33
34
+- Issue #3817: ftplib.FTP.abort() method now considers 225 a valid response
35
+ code as stated in RFC-959 at chapter 5.4.
36
+
37
- Issue #8394: _ctypes.dlopen() accepts bytes, bytearray and str with
38
surrogates.
39
0 commit comments