Skip to content

Commit f29afe9

Browse files
committed
doc: drop compatibility with Sphinx < 1.6
Sphinx 1.6.1 was released in May 2017.
1 parent 2964aad commit f29afe9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

doc/jekyll_fix.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import os
2727

28+
from sphinx.util import logging
2829
from sphinx.util.console import bold
2930

3031
DIRS = {
@@ -38,13 +39,7 @@ def remove_directory_underscores(app, exception):
3839
if exception:
3940
return
4041
# Get logger
41-
try:
42-
from sphinx.util import logging
43-
44-
logger = logging.getLogger(__name__)
45-
except (ImportError, AttributeError):
46-
# Sphinx < 1.6
47-
logger = app
42+
logger = logging.getLogger(__name__)
4843
logger.info(bold('fixing directory names... '), nonl=True)
4944
# Rewrite references in HTML/JS files
5045
for dirpath, _, filenames in os.walk(app.outdir):

0 commit comments

Comments
 (0)