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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/tutorials/examples/recipe.py b/doc/development/tutorials/examples/recipe.py
index 8dc53fdd6..845628864 100644
--- a/doc/development/tutorials/examples/recipe.py
+++ b/doc/development/tutorials/examples/recipe.py
@@ -140,8 +140,8 @@ class RecipeDomain(Domain):
def add_recipe(self, signature, ingredients):
"""Add a new recipe to the domain."""
- name = '{}.{}'.format('recipe', signature)
- anchor = 'recipe-{}'.format(signature)
+ name = f'recipe.{signature}'
+ anchor = f'recipe-{signature}'
self.data['recipe_ingredients'][name] = ingredients
# name, dispname, type, docname, anchor, priority