diff options
Diffstat (limited to 'sphinx/cmd/make_mode.py')
-rw-r--r-- | sphinx/cmd/make_mode.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index cf8673623..6baf0de17 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ sphinx.cmd.make_mode ~~~~~~~~~~~~~~~~~~~~ @@ -14,7 +13,6 @@ :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ -from __future__ import print_function import os import subprocess @@ -59,17 +57,17 @@ BUILDERS = [ ] -class Make(object): +class Make: def __init__(self, srcdir, builddir, opts): - # type: (unicode, unicode, List[unicode]) -> None + # type: (str, str, List[str]) -> None self.srcdir = srcdir self.builddir = builddir self.opts = opts self.makecmd = os.environ.get('MAKE', 'make') # refer $MAKE to determine make command def builddir_join(self, *comps): - # type: (unicode) -> unicode + # type: (str) -> str return path.join(self.builddir, *comps) def build_clean(self): @@ -146,7 +144,7 @@ class Make(object): return 0 def run_generic_build(self, builder, doctreedir=None): - # type: (unicode, unicode) -> int + # type: (str, str) -> int # compatibility with old Makefile papersize = os.getenv('PAPER', '') opts = self.opts @@ -163,7 +161,7 @@ class Make(object): def run_make_mode(args): - # type: (List[unicode]) -> int + # type: (List[str]) -> int if len(args) < 3: print('Error: at least 3 arguments (builder, source ' 'dir, build dir) are required.', file=sys.stderr) |