Fix allowing RemotePromises to be returned directly

This commit is contained in:
Jason Paryani
2013-12-11 11:24:27 -08:00
parent 03bac73120
commit 4d8a27844f
3 changed files with 57 additions and 29 deletions

View File

@@ -41,7 +41,9 @@ def evaluateImpl(expression, params=None):
joinedParams = capnp.join_promises(paramPromises)
# When the parameters are complete, call the function.
ret = joinedParams.then(lambda vals: func.call(vals).then(lambda result: result.value))
ret = (joinedParams
.then(lambda vals: func.call(vals))
.then(lambda result: result.value))
return ret
else: