diff options
author | Eric Eastwood <erice@element.io> | 2022-04-21 02:38:07 -0500 |
---|---|---|
committer | Eric Eastwood <erice@element.io> | 2022-04-21 02:38:07 -0500 |
commit | 2a9428b7505d987d09e196e9e986fac177f8090b (patch) | |
tree | 5e3d661bb3e1cbbb8ef799f77ea2c814e16f119b | |
parent | Nest under MSC3244 room_capabilities field (diff) | |
download | synapse-github/madlittlemods/msc2716-room-capabilities.tar.xz |
Remove formatting changes github/madlittlemods/msc2716-room-capabilities madlittlemods/msc2716-room-capabilities
-rw-r--r-- | synapse/events/utils.py | 2 | ||||
-rw-r--r-- | synapse/rest/client/capabilities.py | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py index 331e00632b..0b839e2b22 100644 --- a/synapse/events/utils.py +++ b/synapse/events/utils.py @@ -49,7 +49,7 @@ if TYPE_CHECKING: # the literal fields "foo\" and "bar" but will instead be treated as "foo\\.bar" SPLIT_FIELD_REGEX = re.compile(r"(?<!\\)\.") -CANONICALJSON_MAX_INT = (2 ** 53) - 1 +CANONICALJSON_MAX_INT = (2**53) - 1 CANONICALJSON_MIN_INT = -CANONICALJSON_MAX_INT diff --git a/synapse/rest/client/capabilities.py b/synapse/rest/client/capabilities.py index ee78f93852..4237071c61 100644 --- a/synapse/rest/client/capabilities.py +++ b/synapse/rest/client/capabilities.py @@ -15,10 +15,7 @@ import logging from http import HTTPStatus from typing import TYPE_CHECKING, Tuple -from synapse.api.room_versions import ( - KNOWN_ROOM_VERSIONS, - MSC3244_CAPABILITIES, -) +from synapse.api.room_versions import KNOWN_ROOM_VERSIONS, MSC3244_CAPABILITIES from synapse.http.server import HttpServer from synapse.http.servlet import RestServlet from synapse.http.site import SynapseRequest |