summary refs log tree commit diff
path: root/synapse/replication/http
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/replication/http
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/replication/http')
-rw-r--r--synapse/replication/http/_base.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/replication/http/_base.py b/synapse/replication/http/_base.py
index ba16f22c91..b448da6710 100644
--- a/synapse/replication/http/_base.py
+++ b/synapse/replication/http/_base.py
@@ -33,7 +33,7 @@ from synapse.util.stringutils import random_string
 logger = logging.getLogger(__name__)
 
 
-class ReplicationEndpoint:
+class ReplicationEndpoint(metaclass=abc.ABCMeta):
     """Helper base class for defining new replication HTTP endpoints.
 
     This creates an endpoint under `/_synapse/replication/:NAME/:PATH_ARGS..`
@@ -72,8 +72,6 @@ class ReplicationEndpoint:
             is received.
     """
 
-    __metaclass__ = abc.ABCMeta
-
     NAME = abc.abstractproperty()  # type: str  # type: ignore
     PATH_ARGS = abc.abstractproperty()  # type: Tuple[str, ...]  # type: ignore
     METHOD = "POST"