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:
authorPeter Bell <peterbell10@live.co.uk>2020-07-15 02:08:44 +0300
committerPeter Bell <peterbell10@live.co.uk>2020-07-15 02:12:31 +0300
commitbedc00faa6c1c35ab11673734c462d9652651da5 (patch)
tree4a18da8ec248ad49b94d05491f00f3320fc0a07a /sphinx/io.py
parentd5482643d70e9ead27b3e4ecbfffacabf27e3e5f (diff)
Require canonical name to be specified when calling deprecated_alias
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index 4a9d3a94e..d6dd29b1d 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -226,7 +226,8 @@ def read_doc(app: "Sphinx", env: BuildEnvironment, filename: str) -> nodes.docum
deprecated_alias('sphinx.io',
{
- 'FiletypeNotFoundError': FiletypeNotFoundError,
- 'get_filetype': get_filetype,
+ 'FiletypeNotFoundError': (
+ 'sphinx.errors.FiletypeNotFoundError', FiletypeNotFoundError),
+ 'get_filetype': ('sphinx.util.get_filetype', get_filetype),
},
RemovedInSphinx40Warning)