From 0f83b7619013931c313557e297402c6987d2a7b8 Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Thu, 21 Jul 2011 17:03:20 -0700
Subject: [PATCH] frontends/ftpd.py: remove the check for IWriteFile.close
 since we're now guaranteed to be using Twisted >= 10.1 which has it.

---
 src/allmydata/frontends/ftpd.py | 6 ------
 1 file changed, 6 deletions(-)

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)
 
-- 
2.45.2