summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/storage/schema/delta/56/stats_separated2.py2
-rw-r--r--synapse/storage/stats.py4
-rw-r--r--tests/handlers/test_stats.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/schema/delta/56/stats_separated2.py b/synapse/storage/schema/delta/56/stats_separated2.py
index 07b1d982ed..c5e3208adb 100644
--- a/synapse/storage/schema/delta/56/stats_separated2.py
+++ b/synapse/storage/schema/delta/56/stats_separated2.py
@@ -15,7 +15,7 @@
 
 # This schema delta will be run after 'stats_separated1.sql' due to lexicographic
 # ordering. Note that it MUST be so.
-from synapse.storage.engines import Sqlite3Engine, PostgresEngine
+from synapse.storage.engines import PostgresEngine, Sqlite3Engine
 
 
 def _run_create_generic(stats_type, cursor, database_engine):
diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py
index 4c3db891c8..2f34535498 100644
--- a/synapse/storage/stats.py
+++ b/synapse/storage/stats.py
@@ -76,9 +76,7 @@ class StatsStore(StateDeltasStore):
         # we no longer need to perform clean-up, but we will give ourselves
         # the potential to reintroduce it in the future – so documentation
         # will still encourage the use of this no-op handler.
-        self.register_noop_background_update(
-            "populate_stats_cleanup"
-        )
+        self.register_noop_background_update("populate_stats_cleanup")
 
     def quantise_stats_time(self, ts):
         """
diff --git a/tests/handlers/test_stats.py b/tests/handlers/test_stats.py
index b4db7fed74..c4b7dfab73 100644
--- a/tests/handlers/test_stats.py
+++ b/tests/handlers/test_stats.py
@@ -14,12 +14,14 @@
 # limitations under the License.
 
 from mock import Mock
+
 from twisted.internet import defer
 
 from synapse import storage
 from synapse.api.constants import EventTypes, Membership
 from synapse.rest import admin
 from synapse.rest.client.v1 import login, room
+
 from tests import unittest
 
 # The expected number of state events in a fresh public room.