mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-25 04:38:29 -04:00
Stop sub-classing object (#8249)
This commit is contained in:
parent
9f8abdcc38
commit
c619253db8
168 changed files with 293 additions and 292 deletions
|
@ -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.
|
||||
"""
|
||||
|
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
@ -25,7 +25,7 @@ logger = logging.getLogger(__name__)
|
|||
SERVER_NOTICE_ROOM_TAG = "m.server_notice"
|
||||
|
||||
|
||||
class ServerNoticesManager(object):
|
||||
class ServerNoticesManager:
|
||||
def __init__(self, hs):
|
||||
"""
|
||||
|
||||
|
|
|
@ -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
|
||||
"""
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
|
||||
class WorkerServerNoticesSender(object):
|
||||
class WorkerServerNoticesSender:
|
||||
"""Stub impl of ServerNoticesSender which does nothing"""
|
||||
|
||||
def __init__(self, hs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue