Skip to content

Commit

Permalink
Fix a Sphinx deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiwek committed Dec 14, 2018
1 parent 73ccc0f commit be0d302
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/ext/broxygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@

from sphinx.domains import Domain, ObjType
from sphinx.locale import l_
from sphinx.util import logging
from docutils.parsers.rst.directives.misc import Include


logger = logging.getLogger(__name__)
App = None


def info(msg):
"""Use Sphinx builder to output a console message."""
global App
from sphinx.util.console import blue
App.builder.info(blue(msg))
logger.info(blue(msg))


def pattern_to_filename_component(pattern):
Expand Down

0 comments on commit be0d302

Please sign in to comment.