mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Replace returnValue with return (#5736)
This commit is contained in:
parent
18a466b84e
commit
4806651744
177 changed files with 1359 additions and 1513 deletions
|
@ -361,7 +361,7 @@ def setup_test_homeserver(
|
|||
if fed:
|
||||
register_federation_servlets(hs, fed)
|
||||
|
||||
defer.returnValue(hs)
|
||||
return hs
|
||||
|
||||
|
||||
def register_federation_servlets(hs, resource):
|
||||
|
@ -465,9 +465,9 @@ class MockHttpResource(HttpServer):
|
|||
args = [urlparse.unquote(u) for u in matcher.groups()]
|
||||
|
||||
(code, response) = yield func(mock_request, *args)
|
||||
defer.returnValue((code, response))
|
||||
return (code, response)
|
||||
except CodeMessageException as e:
|
||||
defer.returnValue((e.code, cs_error(e.msg, code=e.errcode)))
|
||||
return (e.code, cs_error(e.msg, code=e.errcode))
|
||||
|
||||
raise KeyError("No event can handle %s" % path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue