summaryrefslogtreecommitdiffstats
path: root/Lib/ftplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-07-02 20:41:20 (GMT)
committerGuido van Rossum <guido@python.org>1998-07-02 20:41:20 (GMT)
commit6bbd1d0f0efc4f7d766cb7d015e013fe96a1a362 (patch)
tree7fbc52da4d0a7869b9f9e6cf6bb6e6af0f79ff7d /Lib/ftplib.py
parent1717ba498f8beffc18d64163faba26d982d323d9 (diff)
downloadcpython-6bbd1d0f0efc4f7d766cb7d015e013fe96a1a362.zip
cpython-6bbd1d0f0efc4f7d766cb7d015e013fe96a1a362.tar.gz
cpython-6bbd1d0f0efc4f7d766cb7d015e013fe96a1a362.tar.bz2
According to Robin Dunn, at least one FTP server returns 200 instead
of 250 on a successful delete.
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r--Lib/ftplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 0c14c6b..e18f684 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