mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 23:34:56 -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
|
@ -366,7 +366,7 @@ class ReadWriteLock(object):
|
|||
new_defer.callback(None)
|
||||
self.key_to_current_readers.get(key, set()).discard(new_defer)
|
||||
|
||||
defer.returnValue(_ctx_manager())
|
||||
return _ctx_manager()
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def write(self, key):
|
||||
|
@ -396,7 +396,7 @@ class ReadWriteLock(object):
|
|||
if self.key_to_current_writer[key] == new_defer:
|
||||
self.key_to_current_writer.pop(key)
|
||||
|
||||
defer.returnValue(_ctx_manager())
|
||||
return _ctx_manager()
|
||||
|
||||
|
||||
def _cancelled_to_timed_out_error(value, timeout):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue