diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-01-19 22:23:45 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-11 14:49:54 +0900 |
commit | 81208ad704fabc2cbcd6afb71b16d46014ef6472 (patch) | |
tree | d7b190684ae671ccbddc0b04ca5f5d7924239efc /sphinx/builders/manpage.py | |
parent | f82a26681468b70b82b90037e60db7bd5508a59e (diff) | |
download | sphinx-git-81208ad704fabc2cbcd6afb71b16d46014ef6472.tar.gz |
manpage: refactor with progress_message()
Diffstat (limited to 'sphinx/builders/manpage.py')
-rw-r--r-- | sphinx/builders/manpage.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/builders/manpage.py b/sphinx/builders/manpage.py index 6658adc38..214ed6afa 100644 --- a/sphinx/builders/manpage.py +++ b/sphinx/builders/manpage.py @@ -18,7 +18,8 @@ from sphinx.builders import Builder from sphinx.environment import NoUri from sphinx.locale import __ from sphinx.util import logging -from sphinx.util.console import bold, darkgreen # type: ignore +from sphinx.util import progress_message +from sphinx.util.console import darkgreen # type: ignore from sphinx.util.nodes import inline_all_toctrees from sphinx.util.osutil import make_filename_from_project from sphinx.writers.manpage import ManualPageWriter, ManualPageTranslator @@ -60,6 +61,7 @@ class ManualPageBuilder(Builder): return '' raise NoUri + @progress_message(__('writing')) def write(self, *ignored): # type: (Any) -> None docwriter = ManualPageWriter(self) @@ -68,8 +70,6 @@ class ManualPageBuilder(Builder): components=(docwriter,), read_config_files=True).get_default_values() # type: Any - logger.info(bold(__('writing... ')), nonl=True) - for info in self.config.man_pages: docname, name, description, authors, section = info if docname not in self.env.all_docs: @@ -105,7 +105,6 @@ class ManualPageBuilder(Builder): pendingnode.replace_self(pendingnode.children) docwriter.write(largetree, destination) - logger.info('') def finish(self): # type: () -> None |