From 8f10ceaa907f3f608494f782f65070d0bb8b9587 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Fri, 1 May 2020 15:54:15 +0100 Subject: Changed `'%s' % value` pattern to `str(value)`. --- docs/_ext/djangodocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/_ext/djangodocs.py') 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) -- cgit v1.2.1