Codebase list python-lml / 93e453cd-683b-436c-8af0-1a49b56c58b8/upstream lml / __init__.py
93e453cd-683b-436c-8af0-1a49b56c58b8/upstream

Tree @93e453cd-683b-436c-8af0-1a49b56c58b8/upstream (Download .tar.gz)

__init__.py @93e453cd-683b-436c-8af0-1a49b56c58b8/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())