diff --git a/google/cloud/ndb/tasklets.py b/google/cloud/ndb/tasklets.py index c9f836b2..2f8e5a55 100644 --- a/google/cloud/ndb/tasklets.py +++ b/google/cloud/ndb/tasklets.py @@ -36,7 +36,7 @@ def foo(): def main(): f = foo() x = f.result() - print x + print(x) In this example, `foo` needs the results of two futures, `AFuture` and `BFuture`, which it gets somehow, for example as results of calls. @@ -63,7 +63,7 @@ def main(): def main_tasklet(): f = foo() x = yield f - print x + print(x) Calling a tasklet automatically schedules it with the event loop::