mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Fix a Sphinx deprecation
This commit is contained in:
parent
73ccc0f4ac
commit
be0d3021fa
1 changed files with 3 additions and 2 deletions
|
@ -23,9 +23,10 @@ broxygen:file_analyzer
|
||||||
|
|
||||||
from sphinx.domains import Domain, ObjType
|
from sphinx.domains import Domain, ObjType
|
||||||
from sphinx.locale import l_
|
from sphinx.locale import l_
|
||||||
|
from sphinx.util import logging
|
||||||
from docutils.parsers.rst.directives.misc import Include
|
from docutils.parsers.rst.directives.misc import Include
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
App = None
|
App = None
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ def info(msg):
|
||||||
"""Use Sphinx builder to output a console message."""
|
"""Use Sphinx builder to output a console message."""
|
||||||
global App
|
global App
|
||||||
from sphinx.util.console import blue
|
from sphinx.util.console import blue
|
||||||
App.builder.info(blue(msg))
|
logger.info(blue(msg))
|
||||||
|
|
||||||
|
|
||||||
def pattern_to_filename_component(pattern):
|
def pattern_to_filename_component(pattern):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue