diff options
author | Peter Bell <peterbell10@live.co.uk> | 2020-07-15 02:08:44 +0300 |
---|---|---|
committer | Peter Bell <peterbell10@live.co.uk> | 2020-07-15 02:12:31 +0300 |
commit | bedc00faa6c1c35ab11673734c462d9652651da5 (patch) | |
tree | 4a18da8ec248ad49b94d05491f00f3320fc0a07a /sphinx/io.py | |
parent | d5482643d70e9ead27b3e4ecbfffacabf27e3e5f (diff) |
Require canonical name to be specified when calling deprecated_alias
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 5 |
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) |