Catch DeprecationWarning for docutils.frontend.Option

This commit is contained in:
Adam Turner 2022-04-22 03:10:00 +01:00
parent a8827f3329
commit ced0cfe840

View File

@ -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