Rearrange imports

This commit is contained in:
Sajith Sasidharan 2020-09-22 21:14:00 -04:00
parent 22a1721b62
commit e6a5dda7e1

View File

@ -3,20 +3,40 @@ import time
import json import json
from functools import wraps from functools import wraps
from twisted.web import http, server, resource, template from twisted.web import (
http,
resource,
server,
template,
)
from twisted.python import log from twisted.python import log
from nevow import appserver from nevow import appserver
from nevow.rend import Page from nevow.rend import Page
from nevow.inevow import IRequest from nevow.inevow import IRequest
from allmydata import blacklist from allmydata import blacklist
from allmydata.interfaces import ExistingChildError, NoSuchChildError, \ from allmydata.interfaces import (
FileTooLargeError, NotEnoughSharesError, NoSharesError, \ EmptyPathnameComponentError,
EmptyPathnameComponentError, MustBeDeepImmutableError, \ ExistingChildError,
MustBeReadonlyError, MustNotBeUnknownRWError, SDMF_VERSION, MDMF_VERSION FileTooLargeError,
MustBeDeepImmutableError,
MustBeReadonlyError,
MustNotBeUnknownRWError,
NoSharesError,
NoSuchChildError,
NotEnoughSharesError,
MDMF_VERSION,
SDMF_VERSION,
)
from allmydata.mutable.common import UnrecoverableFileError from allmydata.mutable.common import UnrecoverableFileError
from allmydata.util.hashutil import timing_safe_compare from allmydata.util.hashutil import timing_safe_compare
from allmydata.util.time_format import format_time, format_delta from allmydata.util.time_format import (
from allmydata.util.encodingutil import to_bytes, quote_output format_delta,
format_time,
)
from allmydata.util.encodingutil import (
quote_output,
to_bytes,
)
# Originally part of this module, so still part of its API: # Originally part of this module, so still part of its API:
from .common_py3 import ( # noqa: F401 from .common_py3 import ( # noqa: F401