import cleanups

This commit is contained in:
Jean-Paul Calderone 2019-03-21 15:01:25 -04:00
parent d00c4212a8
commit 58deb54cfc

View File

@ -8,21 +8,22 @@ from __future__ import (
import json import json
from autobahn.twisted.resource import WebSocketResource from autobahn.twisted.resource import WebSocketResource
from autobahn.twisted.websocket import WebSocketServerFactory from autobahn.twisted.websocket import (
from autobahn.twisted.websocket import WebSocketServerProtocol WebSocketServerFactory,
WebSocketServerProtocol,
)
from autobahn.websocket.types import ConnectionDeny from autobahn.websocket.types import ConnectionDeny
from twisted.web import resource, server
from twisted.python.failure import Failure
import eliot import eliot
from allmydata.util.hashutil import timing_safe_compare
from .common import humanize_failure
from twisted.web.resource import ( from twisted.web.resource import (
Resource, Resource,
) )
from allmydata.util.hashutil import (
timing_safe_compare,
)
class TokenAuthenticatedWebSocketServerProtocol(WebSocketServerProtocol): class TokenAuthenticatedWebSocketServerProtocol(WebSocketServerProtocol):
""" """