summaryrefslogtreecommitdiff
path: root/sphinx/cmdline.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-01 01:24:12 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-01 01:24:12 +0900
commit8b687ac30481e7204677138d8f2f3b49e354963e (patch)
tree7723d959db00959780dc7f9f56c673cd47d7cd97 /sphinx/cmdline.py
parente8e0f93c3fc7a9f8be4a91c13c6ec49672347a1e (diff)
parentf4d7b2e60e4352aac6e19dad16f39328bf493ff4 (diff)
downloadsphinx-git-8b687ac30481e7204677138d8f2f3b49e354963e.tar.gz
Merge branch '1.8'
Diffstat (limited to 'sphinx/cmdline.py')
-rw-r--r--sphinx/cmdline.py8
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)