Codebase list python-lml / run/80ceed3b-b894-4b6a-9443-1f0284bb9895/upstream lml / __init__.py
run/80ceed3b-b894-4b6a-9443-1f0284bb9895/upstream

Tree @run/80ceed3b-b894-4b6a-9443-1f0284bb9895/upstream (Download .tar.gz)

__init__.py @run/80ceed3b-b894-4b6a-9443-1f0284bb9895/upstreamraw · history · blame

"""
    lml
    ~~~~~~~~~~~~~~~~~~~

    Load me later. A lazy loading plugin management system.

    :copyright: (c) 2017-2018 by Onni Software Ltd.
    :license: New BSD License, see LICENSE for more details
"""
import logging

from lml._version import __author__  # noqa: F401
from lml._version import __version__  # noqa: F401

try:
    from logging import NullHandler
except ImportError:

    class NullHandler(logging.Handler):
        """
          Null handler for logging
          """

        def emit(self, record):
            pass

    logging.getLogger(__name__).addHandler(NullHandler())