From ea3e5ab4037fd9e570d0dd402712f7f2cf55905b Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 17 Jan 2018 15:07:42 -0500 Subject: [PATCH] emit warning correctly distutils.log has a warn() function but not a warning() function. Change-Id: Iebfdb9e4d062d188ef9c73b66007a70f9c289ed2 Signed-off-by: Doug Hellmann --- pbr/builddoc.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pbr/builddoc.py b/pbr/builddoc.py index f6c44d19..cd75792e 100644 --- a/pbr/builddoc.py +++ b/pbr/builddoc.py @@ -195,18 +195,18 @@ class LocalBuildDoc(setup_command.BuildDoc): # TODO(stephenfin): Remove support for Sphinx < 1.6 in 4.0 if not is_multibuilder_sphinx: - log.warning('[pbr] Support for Sphinx < 1.6 will be dropped in ' - 'pbr 4.0. Upgrade to Sphinx 1.6+') + log.warn('[pbr] Support for Sphinx < 1.6 will be dropped in ' + 'pbr 4.0. Upgrade to Sphinx 1.6+') # TODO(stephenfin): Remove this at the next MAJOR version bump if self.builders != ['html']: - log.warning("[pbr] Sphinx 1.6 added native support for " - "specifying multiple builders in the " - "'[sphinx_build] builder' configuration option, " - "found in 'setup.cfg'. As a result, the " - "'[sphinx_build] builders' option has been " - "deprecated and will be removed in pbr 4.0. Migrate " - "to the 'builder' configuration option.") + log.warn("[pbr] Sphinx 1.6 added native support for " + "specifying multiple builders in the " + "'[sphinx_build] builder' configuration option, " + "found in 'setup.cfg'. As a result, the " + "'[sphinx_build] builders' option has been " + "deprecated and will be removed in pbr 4.0. Migrate " + "to the 'builder' configuration option.") if is_multibuilder_sphinx: self.builder = self.builders