summaryrefslogtreecommitdiff
path: root/sphinx/apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-09-02 13:50:20 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-09-03 00:31:33 +0900
commita7cab001d9ccb1d93b28f8dc03271f2b28586830 (patch)
treeb4875b979fb49ede7f82a6bdcb020f47528addce /sphinx/apidoc.py
parentbc02abcb77143d12c08265c4c10ba9c6cd003832 (diff)
downloadsphinx-git-a7cab001d9ccb1d93b28f8dc03271f2b28586830.tar.gz
Drop APIs deprecated in 2.0
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r--sphinx/apidoc.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/sphinx/apidoc.py b/sphinx/apidoc.py
deleted file mode 100644
index 95a1d14f7..000000000
--- a/sphinx/apidoc.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
- sphinx.apidoc
- ~~~~~~~~~~~~~
-
- This file has moved to :py:mod:`sphinx.ext.apidoc`.
-
- :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-"""
-
-import sys
-import warnings
-
-from sphinx.deprecation import RemovedInSphinx20Warning
-from sphinx.ext.apidoc import main as _main
-
-if False:
- # For type annotation
- from typing import List # NOQA
- from sphinx.application import Sphinx # NOQA
-
-
-def main(argv=sys.argv):
- # type: (List[str]) -> None
- warnings.warn(
- '`sphinx.apidoc.main()` has moved to `sphinx.ext.apidoc.main()`.',
- RemovedInSphinx20Warning,
- stacklevel=2,
- )
- _main(argv[1:]) # skip first argument to adjust arguments (refs: #4615)
-
-
-# So program can be started with "python -m sphinx.apidoc ..."
-if __name__ == "__main__":
- warnings.warn(
- '`sphinx.apidoc` has moved to `sphinx.ext.apidoc`.',
- RemovedInSphinx20Warning,
- stacklevel=2,
- )
- main()