summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorJonathan de Jong <jonathandejong02@gmail.com>2020-09-16 21:15:55 +0200
committerGitHub <noreply@github.com>2020-09-16 15:15:55 -0400
commita3f124b821f0faf53af9e6c890870ec8cbb47ce5 (patch)
tree68d8a693cee3fa4bb8cf3523e190bba6d3b9dff9 /synapse/handlers
parentMerge tag 'v1.20.0rc4' into develop (diff)
downloadsynapse-a3f124b821f0faf53af9e6c890870ec8cbb47ce5.tar.xz
Switch metaclass initialization to python 3-compatible syntax (#8326)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/room_member.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 01a6e88262..8feba8c90a 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -51,14 +51,12 @@ if TYPE_CHECKING:
 logger = logging.getLogger(__name__)
 
 
-class RoomMemberHandler:
+class RoomMemberHandler(metaclass=abc.ABCMeta):
     # TODO(paul): This handler currently contains a messy conflation of
     #   low-level API that works on UserID objects and so on, and REST-level
     #   API that takes ID strings and returns pagination chunks. These concerns
     #   ought to be separated out a lot better.
 
-    __metaclass__ = abc.ABCMeta
-
     def __init__(self, hs: "HomeServer"):
         self.hs = hs
         self.store = hs.get_datastore()