mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 03:44:23 +00:00
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:
parent
8b40826774
commit
0f83b76190
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user