def __exit__(self, exc_type, exc_val, exc_tb):
    if self._remove:
        _rmdir_with_retries(self._path, num_retries=5)
def __exit__(self, exc_type, exc_val, exc_tb):
    if self._remove:
        _rmdir_with_retries(self._path, num_retries=5)