mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-18 06:39:18 -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
|
@ -35,7 +35,7 @@ class TimedOutException(Exception):
|
|||
|
||||
|
||||
@attr.s
|
||||
class FakeChannel(object):
|
||||
class FakeChannel:
|
||||
"""
|
||||
A fake Twisted Web Channel (the part that interfaces with the
|
||||
wire).
|
||||
|
@ -242,7 +242,7 @@ class ThreadedMemoryReactorClock(MemoryReactorClock):
|
|||
lookups = self.lookups = {}
|
||||
|
||||
@implementer(IResolverSimple)
|
||||
class FakeResolver(object):
|
||||
class FakeResolver:
|
||||
def getHostByName(self, name, timeout=None):
|
||||
if name not in lookups:
|
||||
return fail(DNSLookupError("OH NO: unknown %s" % (name,)))
|
||||
|
@ -371,7 +371,7 @@ def get_clock():
|
|||
|
||||
|
||||
@attr.s(cmp=False)
|
||||
class FakeTransport(object):
|
||||
class FakeTransport:
|
||||
"""
|
||||
A twisted.internet.interfaces.ITransport implementation which sends all its data
|
||||
straight into an IProtocol object: it exists to connect two IProtocols together.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue