Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-15 19:38:17 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-15 19:45:02 +0300
commit00c30679cfe6385b16274f9f32300e574dff8ec3 (patch)
tree16bc8b492c25bab93a7a8f58ba92dc3703a4c474 /sphinx/io.py
parent2f768cf5a745edf908b7b2e37f21b9e07660a52a (diff)
Deprecate sphinx.io.FiletypeNotFoundError and get_filetype()
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index fb389a4a3..72762f46c 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -19,7 +19,10 @@ from docutils.statemachine import StringList, string2lines
from docutils.transforms.references import DanglingReferences
from docutils.writers import UnfilteredWriter
-from sphinx.deprecation import RemovedInSphinx30Warning, RemovedInSphinx40Warning
+from sphinx.deprecation import (
+ RemovedInSphinx30Warning, RemovedInSphinx40Warning, deprecated_alias
+)
+from sphinx.errors import FiletypeNotFoundError
from sphinx.transforms import (
AutoIndexUpgrader, DoctreeReadEvent, FigureAligner, SphinxTransformer
)
@@ -335,3 +338,11 @@ def read_doc(app, env, filename):
pub.publish()
return pub.document
+
+
+deprecated_alias('sphinx.io',
+ {
+ 'FiletypeNotFoundError': FiletypeNotFoundError,
+ 'get_filetype': get_filetype,
+ },
+ RemovedInSphinx40Warning)