X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=Documentation%2Fsphinx%2Fkernellog.py;h=0bc00c138cadeec6509c230ff2181338c2472ce6;hb=4a8176fd62aa7fa86599efcbd3631af272b109d8;hp=8ac7d274f542b78d9e6061b4f6900e309d817613;hpb=f0f6dbaf06f4329dbd07594ffcd55edf27ee4b45;p=linux-2.6-microblaze.git diff --git a/Documentation/sphinx/kernellog.py b/Documentation/sphinx/kernellog.py index 8ac7d274f542..0bc00c138cad 100644 --- a/Documentation/sphinx/kernellog.py +++ b/Documentation/sphinx/kernellog.py @@ -4,29 +4,19 @@ # only goes back to 1.6. So here's a wrapper layer to keep around for # as long as we support 1.4. # +# We don't support 1.4 anymore, but we'll keep the wrappers around until +# we change all the code to not use them anymore :) +# import sphinx +from sphinx.util import logging -if sphinx.__version__[:3] >= '1.6': - UseLogging = True - from sphinx.util import logging - logger = logging.getLogger('kerneldoc') -else: - UseLogging = False +logger = logging.getLogger('kerneldoc') def warn(app, message): - if UseLogging: - logger.warning(message) - else: - app.warn(message) + logger.warning(message) def verbose(app, message): - if UseLogging: - logger.verbose(message) - else: - app.verbose(message) + logger.verbose(message) def info(app, message): - if UseLogging: - logger.info(message) - else: - app.info(message) + logger.info(message)