@pytest.fixture(scope='function')
def handler(log_started):
    _handler.truncate(0)
    _handler.seek(0)
    return _handler
Remove leading indent from a block of text.
dataset/ETHPy150Open crossbario/txaio/test/test_logging.py/handler--crossover with--dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/utils/formatting.py/dedent