summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-09-06 11:23:16 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-09-06 11:35:19 -0400
commit3801b8aa035594972c400c8bd036894a388c4ab3 (patch)
tree3a2dd0efda2fbc85f45a8bb0132bd46fcc9651d8 /synapse
parentupdate to newer Synapse APIs (diff)
downloadsynapse-3801b8aa035594972c400c8bd036894a388c4ab3.tar.xz
try to make flake8 and isort happy
Diffstat (limited to 'synapse')
-rw-r--r--synapse/api/errors.py1
-rw-r--r--synapse/handlers/e2e_room_keys.py2
-rw-r--r--synapse/rest/client/v2_alpha/room_keys.py5
-rw-r--r--synapse/storage/e2e_room_keys.py6
4 files changed, 10 insertions, 4 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py
index 3002c95dd1..140dbfe8b8 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -326,6 +326,7 @@ class RoomKeysVersionError(SynapseError):
         )
         self.current_version = current_version
 
+
 class IncompatibleRoomVersionError(SynapseError):
     """A server is trying to join a room whose version it does not support."""
 
diff --git a/synapse/handlers/e2e_room_keys.py b/synapse/handlers/e2e_room_keys.py
index c09816b372..2c330382cf 100644
--- a/synapse/handlers/e2e_room_keys.py
+++ b/synapse/handlers/e2e_room_keys.py
@@ -17,7 +17,7 @@ import logging
 
 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
 
 logger = logging.getLogger(__name__)
diff --git a/synapse/rest/client/v2_alpha/room_keys.py b/synapse/rest/client/v2_alpha/room_keys.py
index 9f0172e6f5..1ed18e986f 100644
--- a/synapse/rest/client/v2_alpha/room_keys.py
+++ b/synapse/rest/client/v2_alpha/room_keys.py
@@ -19,8 +19,11 @@ from twisted.internet import defer
 
 from synapse.api.errors import SynapseError
 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
 
 logger = logging.getLogger(__name__)
diff --git a/synapse/storage/e2e_room_keys.py b/synapse/storage/e2e_room_keys.py
index b695570a7b..969f4aef9c 100644
--- a/synapse/storage/e2e_room_keys.py
+++ b/synapse/storage/e2e_room_keys.py
@@ -13,9 +13,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+import simplejson as json
+
 from twisted.internet import defer
+
 from synapse.api.errors import StoreError
-import simplejson as json
 
 from ._base import SQLBaseStore
 
@@ -58,7 +60,7 @@ class EndToEndRoomKeyStore(SQLBaseStore):
             desc="get_e2e_room_key",
         )
 
-        row["session_data"] = json.loads(row["session_data"]);
+        row["session_data"] = json.loads(row["session_data"])
 
         defer.returnValue(row)