def make_temp_dir():
    """Context manager that creates and removes a temporary directory.

    All contents are also removed.

    """
    temp_dir_path = mkdtemp()
    try:
        yield temp_dir_path
    finally:
        rmtree(temp_dir_path)
Context manager that creates and removes a temporary directory.

    All contents are also removed.

    
recipes/Python/576471_Fix_invalid_mail_headers_when_moving/recipe-576471.py