From bc786fab845bb7b34305634643c0756757431660 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 24 Jan 2015 18:38:18 -0500 Subject: [PATCH] Fix doc coverage for WaitIterator. --- docs/gen.rst | 1 + tornado/gen.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/gen.rst b/docs/gen.rst index c9d1cc851b..a6f81ed104 100644 --- a/docs/gen.rst +++ b/docs/gen.rst @@ -28,6 +28,7 @@ .. autofunction:: Task .. autoclass:: WaitIterator + :members: .. class:: Arguments diff --git a/tornado/gen.py b/tornado/gen.py index 11d5aedd2a..86fe2f1959 100644 --- a/tornado/gen.py +++ b/tornado/gen.py @@ -325,6 +325,7 @@ def __init__(self, *args, **kwargs): self._done_callback, self_ref)) def done(self): + """Returns True if this iterator has no more results.""" if self._finished or self._unfinished: return False # Clear the 'current' values when iteration is done.