Stop being silly

We don't support Python 2.6 so we don't need to support this backwards
compatibility
This commit is contained in:
Ian Stapleton Cordasco 2017-11-26 12:26:57 -06:00
parent 696063ed1a
commit 55caffdbe9
No known key found for this signature in database
GPG key ID: C9D7A2604B4FCB2A

View file

@ -10,22 +10,10 @@ This module
"""
import logging
try:
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
"""Shim for version of Python < 2.7."""
def emit(self, record):
"""Do nothing."""
pass
import sys # noqa: I202
import sys
LOG = logging.getLogger(__name__)
LOG.addHandler(NullHandler())
# Clean up after LOG config
del NullHandler
LOG.addHandler(logging.NullHandler())
__version__ = '3.5.0'
__version_info__ = tuple(int(i) for i in __version__.split('.') if i.isdigit())