@contextmanager
def disable_logging(logger=None):
    logger = logger or logging.getLogger()
    disabled = logger.disabled
    logger.disabled = True
    yield
    logger.disabled = disabled
Returns ``True`` if this model instance is a leaf node (it has no
dataset/ETHPy150Open c-w/Gutenberg/gutenberg/_util/logging.py/disable_logging--crossover with--dataset/ETHPy150Open agiliq/django-socialnews/socialnews/mptt/models.py/is_leaf_node