From 3606f08350d8dfdfcf59254604e02cc2ac0bed37 Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Fri, 26 Jul 2024 20:12:14 -0400 Subject: [PATCH] format --- src/conda_package_handling/streaming.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/conda_package_handling/streaming.py b/src/conda_package_handling/streaming.py index c404ba70..7caef22c 100644 --- a/src/conda_package_handling/streaming.py +++ b/src/conda_package_handling/streaming.py @@ -21,9 +21,7 @@ def _stream_components( filename: str, components: list[str], dest_dir: str = "", -) -> Generator[ - Generator[tuple[tarfile.TarFile, tarfile.TarInfo], None, None], None, None -]: +) -> Generator[Generator[tuple[tarfile.TarFile, tarfile.TarInfo], None, None], None, None]: if str(filename).endswith(".tar.bz2"): assert components == ["pkg"] @@ -37,9 +35,7 @@ def _stream_components( except cps_exceptions.CaseInsensitiveFileSystemError as e: raise exceptions.CaseInsensitiveFileSystemError(filename, dest_dir) from e except (OSError, TarError, BadZipFile) as e: - raise exceptions.InvalidArchiveError( - filename, f"failed with error: {str(e)}" - ) from e + raise exceptions.InvalidArchiveError(filename, f"failed with error: {str(e)}") from e def _extract(filename: str, dest_dir: str, components: list[str]): @@ -59,9 +55,7 @@ def _extract(filename: str, dest_dir: str, components: list[str]): except cps_exceptions.CaseInsensitiveFileSystemError as e: raise exceptions.CaseInsensitiveFileSystemError(filename, dest_dir) from e except (OSError, TarError, BadZipFile) as e: - raise exceptions.InvalidArchiveError( - filename, f"failed with error: {str(e)}" - ) from e + raise exceptions.InvalidArchiveError(filename, f"failed with error: {str(e)}") from e def _list(filename: str, components: list[str], verbose=True):