summaryrefslogtreecommitdiff
path: root/doc/development/tutorials/examples
diff options
context:
space:
mode:
Diffstat (limited to 'doc/development/tutorials/examples')
-rw-r--r--doc/development/tutorials/examples/recipe.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/development/tutorials/examples/recipe.py b/doc/development/tutorials/examples/recipe.py
index f917f15c9..8dc53fdd6 100644
--- a/doc/development/tutorials/examples/recipe.py
+++ b/doc/development/tutorials/examples/recipe.py
@@ -120,8 +120,7 @@ class RecipeDomain(Domain):
return '{}.{}'.format('recipe', node.arguments[0])
def get_objects(self):
- for obj in self.data['recipes']:
- yield obj
+ yield from self.data['recipes']
def resolve_xref(self, env, fromdocname, builder, typ, target, node,
contnode):