From 6ae801fee08ed31ae0be02b85f43abfca6050a9e Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 17 Feb 2018 01:33:41 +0900 Subject: [PATCH] Remove sphinx.cmd.build The preparation of moving ``sphinx.cmdline`` to ``sphinx.cmd.build``, I just removed ``sphinx.cmd.build``. --- sphinx/cmd/build.py | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 sphinx/cmd/build.py diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py deleted file mode 100644 index c0c31ae67..000000000 --- a/sphinx/cmd/build.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -""" - sphinx.cmd.build - ~~~~~~~~~~~~~~~~ - - Build documentation from a provided source. - - :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -import sys - -if False: - # For type annotation - from typing import List # NOQA - - -def build_main(argv=sys.argv[1:]): - # type: (List[str]) -> int - """Sphinx build "main" command-line entry.""" - from sphinx import cmdline - return cmdline.main(argv) # type: ignore - - -def make_main(argv=sys.argv[1:]): - # type: (List[str]) -> int - """Sphinx build "make mode" entry.""" - from sphinx import make_mode - return make_mode.run_make_mode(argv[1:]) # type: ignore - - -def main(argv=sys.argv[1:]): - # type: (List[str]) -> int - if sys.argv[1:2] == ['-M']: - return make_main(argv) - else: - return build_main(argv) - - -if __name__ == '__main__': - sys.exit(main(sys.argv[1:]))