mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 23:44:50 -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
|
@ -289,7 +289,7 @@ class CacheDescriptor(_CacheDescriptorBase):
|
|||
def foo(self, key, cache_context):
|
||||
r1 = yield self.bar1(key, on_invalidate=cache_context.invalidate)
|
||||
r2 = yield self.bar2(key, on_invalidate=cache_context.invalidate)
|
||||
defer.returnValue(r1 + r2)
|
||||
return r1 + r2
|
||||
|
||||
Args:
|
||||
num_args (int): number of positional arguments (excluding ``self`` and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue