Stop sub-classing object (#8249)

This commit is contained in:
Patrick Cloke 2020-09-04 06:54:56 -04:00 committed by GitHub
parent 9f8abdcc38
commit c619253db8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
168 changed files with 293 additions and 292 deletions

View file

@ -23,7 +23,7 @@ from synapse.types import get_localpart_from_id
logger = logging.getLogger(__name__)
class ConsentServerNotices(object):
class ConsentServerNotices:
"""Keeps track of whether we need to send users server_notices about
privacy policy consent, and sends one if we do.
"""

View file

@ -27,7 +27,7 @@ from synapse.server_notices.server_notices_manager import SERVER_NOTICE_ROOM_TAG
logger = logging.getLogger(__name__)
class ResourceLimitsServerNotices(object):
class ResourceLimitsServerNotices:
""" Keeps track of whether the server has reached it's resource limit and
ensures that the client is kept up to date.
"""

View file

@ -25,7 +25,7 @@ logger = logging.getLogger(__name__)
SERVER_NOTICE_ROOM_TAG = "m.server_notice"
class ServerNoticesManager(object):
class ServerNoticesManager:
def __init__(self, hs):
"""

View file

@ -20,7 +20,7 @@ from synapse.server_notices.resource_limits_server_notices import (
)
class ServerNoticesSender(object):
class ServerNoticesSender:
"""A centralised place which sends server notices automatically when
Certain Events take place
"""

View file

@ -14,7 +14,7 @@
# limitations under the License.
class WorkerServerNoticesSender(object):
class WorkerServerNoticesSender:
"""Stub impl of ServerNoticesSender which does nothing"""
def __init__(self, hs):