mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 10:38:05 -05:00
Stop sub-classing object (#8249)
This commit is contained in:
parent
9f8abdcc38
commit
c619253db8
168 changed files with 293 additions and 292 deletions
|
|
@ -32,7 +32,7 @@ from tests.server import FakeTransport
|
|||
|
||||
|
||||
@attr.s
|
||||
class FakeResponse(object):
|
||||
class FakeResponse:
|
||||
version = attr.ib()
|
||||
code = attr.ib()
|
||||
phrase = attr.ib()
|
||||
|
|
@ -43,7 +43,7 @@ class FakeResponse(object):
|
|||
@property
|
||||
def request(self):
|
||||
@attr.s
|
||||
class FakeTransport(object):
|
||||
class FakeTransport:
|
||||
absoluteURI = self.absoluteURI
|
||||
|
||||
return FakeTransport()
|
||||
|
|
@ -111,7 +111,7 @@ class URLPreviewTests(unittest.HomeserverTestCase):
|
|||
|
||||
self.lookups = {}
|
||||
|
||||
class Resolver(object):
|
||||
class Resolver:
|
||||
def resolveHostName(
|
||||
_self,
|
||||
resolutionReceiver,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue