Skip to content

Commit 87eddef

Browse files
committed
Replace deprecated sphinx info
1 parent b6f5f73 commit 87eddef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/sphinxext/github.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from docutils import nodes, utils
2121
from docutils.parsers.rst.roles import set_classes
22+
from sphinx.util import logging
2223

2324
def make_link_node(rawtext, app, type, slug, options):
2425
"""Create a link to a github resource.
@@ -146,7 +147,8 @@ def setup(app):
146147
147148
:param app: Sphinx application context.
148149
"""
149-
app.info('Initializing GitHub plugin')
150+
LOG = logging.getLogger(__name__)
151+
LOG.info('Initializing GitHub plugin')
150152
app.add_role('ghissue', ghissue_role)
151153
app.add_role('ghpull', ghissue_role)
152154
app.add_role('ghuser', ghuser_role)

0 commit comments

Comments
 (0)