mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-22 12:28:05 +00:00
Prefer type(None) for better compatibility.
This commit is contained in:
parent
646297ddc3
commit
67f0be8431
@ -1,7 +1,5 @@
|
|||||||
from six import ensure_str
|
from six import ensure_str
|
||||||
|
|
||||||
from types import NoneType
|
|
||||||
|
|
||||||
from zope.interface import implementer
|
from zope.interface import implementer
|
||||||
from twisted.application import service, strports
|
from twisted.application import service, strports
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
@ -317,7 +315,7 @@ class Dispatcher(object):
|
|||||||
|
|
||||||
class FTPServer(service.MultiService):
|
class FTPServer(service.MultiService):
|
||||||
def __init__(self, client, accountfile, accounturl, ftp_portstr):
|
def __init__(self, client, accountfile, accounturl, ftp_portstr):
|
||||||
precondition(isinstance(accountfile, (unicode, NoneType)), accountfile)
|
precondition(isinstance(accountfile, (unicode, type(None))), accountfile)
|
||||||
service.MultiService.__init__(self)
|
service.MultiService.__init__(self)
|
||||||
|
|
||||||
r = Dispatcher(client)
|
r = Dispatcher(client)
|
||||||
|
Loading…
Reference in New Issue
Block a user