Source code for sceptre

# -*- coding: utf-8 -*-

import logging
import warnings


__author__ = 'Cloudreach'
__email__ = 'sceptre@cloudreach.com'
__version__ = '2.1.5'


# Set up logging to ``/dev/null`` like a library is supposed to.
# http://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library
[docs]class NullHandler(logging.Handler): # pragma: no cover
[docs] def emit(self, record): pass
with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning) logging.getLogger('sceptre').addHandler(NullHandler())