diff options
author | Jonathan de Jong <jonathandejong02@gmail.com> | 2020-09-16 21:15:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 15:15:55 -0400 |
commit | a3f124b821f0faf53af9e6c890870ec8cbb47ce5 (patch) | |
tree | 68d8a693cee3fa4bb8cf3523e190bba6d3b9dff9 /synapse/storage/databases/main/stream.py | |
parent | Merge tag 'v1.20.0rc4' into develop (diff) | |
download | synapse-a3f124b821f0faf53af9e6c890870ec8cbb47ce5.tar.xz |
Switch metaclass initialization to python 3-compatible syntax (#8326)
Diffstat (limited to 'synapse/storage/databases/main/stream.py')
-rw-r--r-- | synapse/storage/databases/main/stream.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/stream.py b/synapse/storage/databases/main/stream.py index 2e95518752..7dbe11513b 100644 --- a/synapse/storage/databases/main/stream.py +++ b/synapse/storage/databases/main/stream.py @@ -259,14 +259,12 @@ def filter_to_clause(event_filter: Optional[Filter]) -> Tuple[str, List[str]]: return " AND ".join(clauses), args -class StreamWorkerStore(EventsWorkerStore, SQLBaseStore): +class StreamWorkerStore(EventsWorkerStore, SQLBaseStore, metaclass=abc.ABCMeta): """This is an abstract base class where subclasses must implement `get_room_max_stream_ordering` and `get_room_min_stream_ordering` which can be called in the initializer. """ - __metaclass__ = abc.ABCMeta - def __init__(self, database: DatabasePool, db_conn, hs: "HomeServer"): super(StreamWorkerStore, self).__init__(database, db_conn, hs) |