add review suggestion

pull/213/head
Carol Willing 2018-02-06 17:28:35 -08:00
rodzic c231531f72
commit a6e02c8715
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -54,7 +54,7 @@ def execute_cmd(cmd, capture=False, **kwargs):
@contextmanager
def maybe_cleanup(path, cleanup=False):
"""Execute cleanup of the passed path when cleanup flag is True."""
"""Delete the directory at passed path if cleanup flag is True."""
yield
if cleanup:
shutil.rmtree(path, ignore_errors=True)