From: david-sarah Date: Fri, 22 Jul 2011 00:03:20 +0000 (-0700) Subject: frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed... X-Git-Url: https://git.rkrishnan.org/frontends/listings/?a=commitdiff_plain;h=0f83b7619013931c313557e297402c6987d2a7b8;p=tahoe-lafs%2Ftahoe-lafs.git frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed to be using Twisted >= 10.1 which has it. --- diff --git a/src/allmydata/frontends/ftpd.py b/src/allmydata/frontends/ftpd.py index 1321863a..cc2a0a08 100644 --- a/src/allmydata/frontends/ftpd.py +++ b/src/allmydata/frontends/ftpd.py @@ -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)