emit warning correctly
distutils.log has a warn() function but not a warning() function.
@@ -195,12 +195,12 @@ 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 '
+ 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 "
+ 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 "
