summaryrefslogtreecommitdiff
path: root/sphinx/io.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index d6dd29b1d..fd30b86a9 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -226,8 +226,11 @@ def read_doc(app: "Sphinx", env: BuildEnvironment, filename: str) -> nodes.docum
deprecated_alias('sphinx.io',
{
- 'FiletypeNotFoundError': (
- 'sphinx.errors.FiletypeNotFoundError', FiletypeNotFoundError),
- 'get_filetype': ('sphinx.util.get_filetype', get_filetype),
+ 'FiletypeNotFoundError': FiletypeNotFoundError,
+ 'get_filetype': get_filetype,
},
- RemovedInSphinx40Warning)
+ RemovedInSphinx40Warning,
+ {
+ 'FiletypeNotFoundError': 'sphinx.errors.FiletypeNotFoundError',
+ 'get_filetype': 'sphinx.util.get_filetype',
+ })