frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed...
authordavid-sarah <david-sarah@jacaranda.org>
Fri, 22 Jul 2011 00:03:20 +0000 (17:03 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Fri, 22 Jul 2011 00:03:20 +0000 (17:03 -0700)
src/allmydata/frontends/ftpd.py

index 1321863af9ff8d385835bcab1eac3d5a7ea4d064..cc2a0a084ecdaecf44eea46ef88918e631690669 100644 (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)