Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9e126 commit a6d97e2Copy full SHA for a6d97e2
1 file changed
Doc/tools/extensions/suspicious.py
@@ -50,6 +50,12 @@
50
from sphinx.builders import Builder
51
import sphinx.util
52
53
+try: # sphinx>=1.6
54
+ from sphinx.util.logging import getLogger
55
+except ImportError: # sphinx<1.6
56
+ from logging import getLogger
57
+
58
59
detect_all = re.compile(r'''
60
::(?=[^=])| # two :: (but NOT ::=)
61
:[a-zA-Z][a-zA-Z0-9]+| # :foo
@@ -86,7 +92,7 @@ class CheckSuspiciousMarkupBuilder(Builder):
86
92
Checks for possibly invalid markup that may leak into the output.
87
93
"""
88
94
name = 'suspicious'
89
- logger = sphinx.util.logging.getLogger("CheckSuspiciousMarkupBuilder")
95
+ logger = getLogger("CheckSuspiciousMarkupBuilder")
90
96
91
97
def init(self):
98
# create output file
0 commit comments