summaryrefslogtreecommitdiff
path: root/docs/_ext/djangodocs.py
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2020-05-01 15:54:15 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-04 08:27:18 +0200
commit8f10ceaa907f3f608494f782f65070d0bb8b9587 (patch)
treef6ca48e8809f40377fd9b9ac97ef0f48734b1477 /docs/_ext/djangodocs.py
parent7668f9bce921f66e8e572938154221cd687aaa4a (diff)
downloaddjango-8f10ceaa907f3f608494f782f65070d0bb8b9587.tar.gz
Changed `'%s' % value` pattern to `str(value)`.
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r--docs/_ext/djangodocs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 052d053535..094741d952 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -351,7 +351,7 @@ class ConsoleDirective(CodeBlock):
if env.app.builder.name not in ('djangohtml', 'json'):
return [lit_blk_obj]
- lit_blk_obj['uid'] = '%s' % env.new_serialno('console')
+ lit_blk_obj['uid'] = str(env.new_serialno('console'))
# Only add the tabbed UI if there is actually a Windows-specific
# version of the CLI example.
win_content = code_block_to_win(self.content)