Codebase list python-lml / efe6e114-35cc-443b-ac0b-523bd7c6a8be/upstream lml / __init__.py
efe6e114-35cc-443b-ac0b-523bd7c6a8be/upstream

Tree @efe6e114-35cc-443b-ac0b-523bd7c6a8be/upstream (Download .tar.gz)

__init__.py @efe6e114-35cc-443b-ac0b-523bd7c6a8be/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())