From 5b57a3add47431851470976e2660d1998630edf2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:13:08 +0000 Subject: [PATCH 1/2] chore(deps): update dependency containers/automation_images to v20240320 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 7db356f6..7069788e 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -17,7 +17,7 @@ env: FEDORA_NAME: "fedora-39" # Google-cloud VM Images - IMAGE_SUFFIX: "c20240125t184057z-f39f38d13" + IMAGE_SUFFIX: "c20240320t153921z-f39f38d13" FEDORA_CACHE_IMAGE_NAME: "fedora-podman-py-${IMAGE_SUFFIX}" From 276329b6bf31f9c5a48a160ca9b9e417bd2c0f68 Mon Sep 17 00:00:00 2001 From: Urvashi Mohnani Date: Thu, 21 Mar 2024 04:49:17 -0400 Subject: [PATCH 2/2] Fix pylint issue with yield Use yield from instead of iterating through the list and doing a yield. Signed-off-by: Urvashi Mohnani --- podman/domain/containers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/podman/domain/containers.py b/podman/domain/containers.py index 18ac5f2f..dea35f8d 100644 --- a/podman/domain/containers.py +++ b/podman/domain/containers.py @@ -217,8 +217,7 @@ def export(self, chunk_size: int = api.DEFAULT_CHUNK_SIZE) -> Iterator[bytes]: response = self.client.get(f"/containers/{self.id}/export", stream=True) response.raise_for_status() - for out in response.iter_content(chunk_size=chunk_size): - yield out + yield from response.iter_content(chunk_size=chunk_size) def get_archive( self, path: str, chunk_size: int = api.DEFAULT_CHUNK_SIZE