frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed to be using Twisted >= 10.1 which has it.

This commit is contained in:
david-sarah 2011-07-21 17:03:20 -07:00
parent 8b40826774
commit 0f83b76190

View File

@ -286,12 +286,6 @@ class FTPServer(service.MultiService):
def __init__(self, client, accountfile, accounturl, ftp_portstr):
service.MultiService.__init__(self)
# make sure we're using a patched Twisted that uses IWriteFile.close:
# see docs/frontends/FTP-and-SFTP.txt and
# http://twistedmatrix.com/trac/ticket/3462 for details.
if "close" not in ftp.IWriteFile.names():
raise AssertionError("your twisted is lacking a vital patch, see docs/frontends/FTP-and-SFTP.txt")
r = Dispatcher(client)
p = portal.Portal(r)