mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Catch DeprecationWarning
for docutils.frontend.Option
This commit is contained in:
parent
a8827f3329
commit
ced0cfe840
@ -18,6 +18,8 @@ if 'PYTHONWARNINGS' not in os.environ:
|
||||
# docutils.io using mode='rU' for open
|
||||
warnings.filterwarnings('ignore', "'U' mode is deprecated",
|
||||
DeprecationWarning, module='docutils.io')
|
||||
warnings.filterwarnings('ignore', 'The frontend.Option class .*',
|
||||
DeprecationWarning, module='docutils.frontend')
|
||||
|
||||
__version__ = '5.0.0+'
|
||||
__released__ = '5.0.0' # used when Sphinx builds its own docs
|
||||
|
Loading…
Reference in New Issue
Block a user