mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Fix lint.
This commit is contained in:
parent
9d45cd85c7
commit
0bdea026f0
@ -1,14 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
Ported to Python 3.
|
Ported to Python 3.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
from __future__ import annotations
|
||||||
from __future__ import division
|
|
||||||
from __future__ import print_function
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from future.utils import PY2
|
|
||||||
if PY2:
|
|
||||||
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from struct import (
|
from struct import (
|
||||||
@ -17,13 +10,8 @@ from struct import (
|
|||||||
from functools import (
|
from functools import (
|
||||||
partial,
|
partial,
|
||||||
)
|
)
|
||||||
import attr
|
|
||||||
|
|
||||||
try:
|
import attr
|
||||||
from typing import List
|
|
||||||
from allmydata.introducer.client import IntroducerClient
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
@ -35,6 +23,7 @@ from eliot.twisted import (
|
|||||||
inline_callbacks,
|
inline_callbacks,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from allmydata.introducer.client import IntroducerClient
|
||||||
from allmydata.crypto import aes
|
from allmydata.crypto import aes
|
||||||
from allmydata.storage.server import (
|
from allmydata.storage.server import (
|
||||||
si_b2a,
|
si_b2a,
|
||||||
@ -132,7 +121,7 @@ class FakeCHKCheckerAndUEBFetcher(object):
|
|||||||
))
|
))
|
||||||
|
|
||||||
class FakeClient(service.MultiService):
|
class FakeClient(service.MultiService):
|
||||||
introducer_clients = [] # type: List[IntroducerClient]
|
introducer_clients : list[IntroducerClient] = []
|
||||||
DEFAULT_ENCODING_PARAMETERS = {"k":25,
|
DEFAULT_ENCODING_PARAMETERS = {"k":25,
|
||||||
"happy": 75,
|
"happy": 75,
|
||||||
"n": 100,
|
"n": 100,
|
||||||
|
Loading…
Reference in New Issue
Block a user