From 4b4c3ca6bb0d6fed1b930578e716f1e17db0b491 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 8 Oct 2018 11:49:50 -0400 Subject: [PATCH] avoid trailing space in sphinxext log output Fix nit from parent patch. Change-Id: I25b8ea98a91ec0b10787110584cb8cf293bcc404 Signed-off-by: Doug Hellmann --- oslo_config/sphinxext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_config/sphinxext.py b/oslo_config/sphinxext.py index 74a15ef9..aaac75d8 100644 --- a/oslo_config/sphinxext.py +++ b/oslo_config/sphinxext.py @@ -308,7 +308,7 @@ class ShowOptionsDirective(rst.Directive): for count, line in enumerate(_format_option_help( namespaces, split_namespaces)): result.append(line, source_name, count) - LOG.debug(' '.join(['%5d' % (count), line])) + LOG.debug('%5d%s%s', count, ' ' if line else '', line) node = nodes.section() node.document = self.state.document