diff options
Diffstat (limited to 'sphinx/cmdline.py')
| -rw-r--r-- | sphinx/cmdline.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index 10835d2e7..252f95bbc 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -27,26 +27,26 @@ if False: def handle_exception(app, args, exception, stderr=sys.stderr): # type: (Sphinx, Any, Union[Exception, KeyboardInterrupt], IO) -> None warnings.warn('sphinx.cmdline module is deprecated. Use sphinx.cmd.build instead.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=2) build.handle_exception(app, args, exception, stderr) def jobs_argument(value): # type: (str) -> int warnings.warn('sphinx.cmdline module is deprecated. Use sphinx.cmd.build instead.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=2) return build.jobs_argument(value) def get_parser(): # type: () -> argparse.ArgumentParser warnings.warn('sphinx.cmdline module is deprecated. Use sphinx.cmd.build instead.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=2) return build.get_parser() def main(argv=sys.argv[1:]): # type: ignore # type: (List[unicode]) -> int warnings.warn('sphinx.cmdline module is deprecated. Use sphinx.cmd.build instead.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=2) return build.main(argv) |
