Skip to content

Commit 8a56bb4

Browse files
sneakers-the-ratlwasser
authored andcommitted
import sphinx util when function runs since we import the conf in the noxfile
1 parent 2f928dd commit 8a56bb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_ext/rss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
from typing import TYPE_CHECKING
1313
from urllib.parse import urljoin
1414

15-
from sphinx.util import logging
16-
1715
if TYPE_CHECKING:
1816
from sphinx.application import Sphinx
1917

@@ -86,6 +84,8 @@ def render(self) -> str:
8684

8785

8886
def generate_tutorials_feed(app: "Sphinx"):
87+
from sphinx.util import logging
88+
8989
logger = logging.getLogger("_ext.rss")
9090
logger.info("Generating RSS feed for tutorials")
9191
metadata = app.builder.env.metadata

0 commit comments

Comments
 (0)