From: Guido van Rossum Date: Thu, 2 Jul 1998 20:41:20 +0000 (+0000) Subject: According to Robin Dunn, at least one FTP server returns 200 instead X-Git-Tag: v1.5.2a1~352 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bbd1d0f0efc4f7d766cb7d015e013fe96a1a362;p=thirdparty%2FPython%2Fcpython.git According to Robin Dunn, at least one FTP server returns 200 instead of 250 on a successful delete. --- diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 0c14c6b31ad0..e18f68418587 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -422,7 +422,7 @@ class FTP: def delete(self, filename): '''Delete a file.''' resp = self.sendcmd('DELE ' + filename) - if resp[:3] == '250': + if resp[:3] in ('250', '200'): return resp elif resp[:1] == '5': raise error_perm, resp