diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-10-17 15:54:59 +0100 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-10-17 22:39:09 +0100 |
commit | 920828fe351b9e542206749e2ddf04a2cd17a6f3 (patch) | |
tree | b3243d53e128a1fa5b40247b98b0c987ea5adbaf /doc/development/tutorials/examples/recipe.py | |
parent | b277abcb49d2c6d248518ea30a179cb52175d600 (diff) | |
download | sphinx-git-920828fe351b9e542206749e2ddf04a2cd17a6f3.tar.gz |
Run the ``pyupgrade`` tool
Diffstat (limited to 'doc/development/tutorials/examples/recipe.py')
-rw-r--r-- | doc/development/tutorials/examples/recipe.py | 4 |
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 |