restore lost changes

This commit is contained in:
chfw 2018-08-07 22:23:07 +01:00
parent 435e2f859e
commit 5d08638179
1 changed files with 12 additions and 0 deletions

View File

@ -10,3 +10,15 @@
import logging
from lml._version import __version__ # flake8: noqa
from lml._version import __author__ # flake8: noqa
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())