forked from MirrorHub/synapse
try to make flake8 and isort happy
This commit is contained in:
parent
16a31c6fce
commit
3801b8aa03
5 changed files with 17 additions and 10 deletions
|
@ -326,6 +326,7 @@ class RoomKeysVersionError(SynapseError):
|
||||||
)
|
)
|
||||||
self.current_version = current_version
|
self.current_version = current_version
|
||||||
|
|
||||||
|
|
||||||
class IncompatibleRoomVersionError(SynapseError):
|
class IncompatibleRoomVersionError(SynapseError):
|
||||||
"""A server is trying to join a room whose version it does not support."""
|
"""A server is trying to join a room whose version it does not support."""
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ import logging
|
||||||
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from synapse.api.errors import StoreError, SynapseError, RoomKeysVersionError
|
from synapse.api.errors import RoomKeysVersionError, StoreError, SynapseError
|
||||||
from synapse.util.async_helpers import Linearizer
|
from synapse.util.async_helpers import Linearizer
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -19,8 +19,11 @@ from twisted.internet import defer
|
||||||
|
|
||||||
from synapse.api.errors import SynapseError
|
from synapse.api.errors import SynapseError
|
||||||
from synapse.http.servlet import (
|
from synapse.http.servlet import (
|
||||||
RestServlet, parse_json_object_from_request, parse_string
|
RestServlet,
|
||||||
|
parse_json_object_from_request,
|
||||||
|
parse_string,
|
||||||
)
|
)
|
||||||
|
|
||||||
from ._base import client_v2_patterns
|
from ._base import client_v2_patterns
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -13,10 +13,12 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from twisted.internet import defer
|
|
||||||
from synapse.api.errors import StoreError
|
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
|
|
||||||
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
from synapse.api.errors import StoreError
|
||||||
|
|
||||||
from ._base import SQLBaseStore
|
from ._base import SQLBaseStore
|
||||||
|
|
||||||
|
|
||||||
|
@ -58,7 +60,7 @@ class EndToEndRoomKeyStore(SQLBaseStore):
|
||||||
desc="get_e2e_room_key",
|
desc="get_e2e_room_key",
|
||||||
)
|
)
|
||||||
|
|
||||||
row["session_data"] = json.loads(row["session_data"]);
|
row["session_data"] = json.loads(row["session_data"])
|
||||||
|
|
||||||
defer.returnValue(row)
|
defer.returnValue(row)
|
||||||
|
|
||||||
|
|
|
@ -14,17 +14,18 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import mock
|
|
||||||
from synapse.api import errors
|
|
||||||
from twisted.internet import defer
|
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
|
import mock
|
||||||
|
|
||||||
|
from twisted.internet import defer
|
||||||
|
|
||||||
import synapse.api.errors
|
import synapse.api.errors
|
||||||
import synapse.handlers.e2e_room_keys
|
import synapse.handlers.e2e_room_keys
|
||||||
|
|
||||||
import synapse.storage
|
import synapse.storage
|
||||||
from tests import unittest, utils
|
from synapse.api import errors
|
||||||
|
|
||||||
|
from tests import unittest, utils
|
||||||
|
|
||||||
# sample room_key data for use in the tests
|
# sample room_key data for use in the tests
|
||||||
room_keys = {
|
room_keys = {
|
||||||
|
|
Loading…
Reference in a new issue