File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
"""Sphinx extension module."""
2
2
3
- import logging
4
3
from datetime import datetime
5
4
from typing import Union , Tuple
6
5
7
6
try :
8
- from docutils import nodes
9
- from docutils .parsers .rst import Directive , directives
10
- from sphinx .application import Sphinx
11
- from sphinx .domains import Domain
12
- from sphinx .environment import BuildEnvironment
7
+ import sphinx # noqa
13
8
except ModuleNotFoundError as err :
9
+ import logging
10
+
14
11
msg = "To use it, install with Sphinx."
15
12
logging .error (msg )
16
13
raise err
17
14
15
+ from docutils import nodes
16
+ from docutils .parsers .rst import Directive , directives
18
17
from oembedpy import __version__
19
18
from oembedpy .application import Oembed , Workspace
20
19
from oembedpy .types import Content
20
+ from sphinx .application import Sphinx
21
+ from sphinx .domains import Domain
22
+ from sphinx .environment import BuildEnvironment
21
23
from sphinx .util .logging import getLogger
22
24
23
25
logger = getLogger (__name__ )
You can’t perform that action at this time.
0 commit comments