diff options
Diffstat (limited to 'sphinx/cmd/make_mode.py')
-rw-r--r-- | sphinx/cmd/make_mode.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index 27c4165ab..a4a61e5cb 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -14,7 +14,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 @@ -29,7 +28,6 @@ from sphinx.util.osutil import cd, rmtree if False: # For type annotation from typing import List # NOQA - from sphinx.util.typing import unicode # NOQA BUILDERS = [ @@ -63,14 +61,14 @@ BUILDERS = [ 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): @@ -147,7 +145,7 @@ class Make: 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 @@ -164,7 +162,7 @@ class Make: 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) |