mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
flakes
This commit is contained in:
parent
a1f1f00be7
commit
a73a919a20
@ -2,8 +2,6 @@ from mock import Mock
|
||||
|
||||
import time
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from twisted.trial import unittest
|
||||
from twisted.web.template import Tag
|
||||
from twisted.web.test.requesthelper import DummyRequest
|
||||
@ -18,10 +16,6 @@ from ...util.connection_status import ConnectionStatus
|
||||
from allmydata.web.root import URIHandler
|
||||
from allmydata.client import _Client
|
||||
|
||||
from .common import (
|
||||
assert_soup_has_tag_with_content,
|
||||
)
|
||||
|
||||
from ..common_web import (
|
||||
render,
|
||||
)
|
||||
|
@ -43,7 +43,6 @@ from twisted.python.failure import (
|
||||
Failure,
|
||||
)
|
||||
from twisted.internet.defer import (
|
||||
Deferred,
|
||||
maybeDeferred,
|
||||
)
|
||||
from twisted.web.resource import (
|
||||
|
@ -1,10 +1,6 @@
|
||||
|
||||
import json
|
||||
|
||||
from hyperlink import (
|
||||
DecodedURL,
|
||||
)
|
||||
|
||||
from twisted.web import http, static
|
||||
from twisted.internet import defer
|
||||
from twisted.web.resource import (
|
||||
@ -484,8 +480,6 @@ class FileDownloader(Resource, object):
|
||||
d = self.filenode.read(req, first, size)
|
||||
|
||||
def _error(f):
|
||||
lp = log.msg("error during GET", facility="tahoe.webish", failure=f,
|
||||
level=log.UNUSUAL, umid="xSiF3w")
|
||||
req._tahoe_request_had_error = f # for HTTP-style logging
|
||||
if req.startedWriting:
|
||||
# The content-type is already set, and the response code has
|
||||
|
@ -19,7 +19,6 @@ from twisted.application import service
|
||||
|
||||
from allmydata.web.common import (
|
||||
WebError,
|
||||
get_root,
|
||||
get_arg,
|
||||
boolean_of_arg,
|
||||
exception_to_child,
|
||||
|
@ -13,7 +13,6 @@ from twisted.web.template import (
|
||||
renderElement,
|
||||
tags,
|
||||
)
|
||||
from nevow import url
|
||||
from allmydata.immutable.upload import FileHandle
|
||||
from allmydata.mutable.publish import MutableFileHandle
|
||||
from allmydata.web.common import (
|
||||
|
Loading…
x
Reference in New Issue
Block a user