File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
"""The Sphinx documentation toolchain."""
2
2
3
- from __future__ import annotations
4
-
5
- __version__ = '8.3.0'
6
- __display_version__ = __version__ # used for command line version
7
-
8
3
# Keep this file executable as-is in Python 3!
9
4
# (Otherwise getting the version out of it when packaging is impossible.)
10
5
11
- import os
6
+ from __future__ import annotations
7
+
12
8
import warnings
13
9
14
10
from sphinx .util ._pathlib import _StrPath
15
11
16
- # by default, all DeprecationWarning under sphinx package will be emit.
17
- # Users can avoid this by using environment variable: PYTHONWARNINGS=
18
- if 'PYTHONWARNINGS' not in os .environ :
19
- from sphinx .deprecation import RemovedInNextVersionWarning
12
+ __version__ = '8.3.0'
13
+ __display_version__ = __version__ # used for command line version
20
14
21
- warnings .filterwarnings ('default' , category = RemovedInNextVersionWarning )
22
15
warnings .filterwarnings (
23
16
'ignore' ,
24
17
'The frontend.Option class .*' ,
Original file line number Diff line number Diff line change 2
2
3
3
from __future__ import annotations
4
4
5
+ import os
5
6
import warnings
6
7
7
8
@@ -16,6 +17,12 @@ class RemovedInSphinx10Warning(PendingDeprecationWarning):
16
17
RemovedInNextVersionWarning = RemovedInSphinx90Warning
17
18
18
19
20
+ # By default, all Sphinx deprecation warnings will be emitted.
21
+ # To avoid this, set the environment variable: PYTHONWARNINGS=
22
+ if 'PYTHONWARNINGS' not in os .environ :
23
+ warnings .filterwarnings ('default' , category = RemovedInNextVersionWarning )
24
+
25
+
19
26
def _deprecation_warning (
20
27
module : str ,
21
28
attribute : str ,
You can’t perform that action at this time.
0 commit comments