Skip to content

Commit

Permalink
Remove code that is never executed
Browse files Browse the repository at this point in the history
Python Version is already set to be < 3.9 so this code will never run

Signed-off-by: Nicola Sella <[email protected]>
  • Loading branch information
inknos committed Dec 2, 2024
1 parent 81eaf9d commit 4f8faa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions podman/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
"""Podman client module."""

import sys

from podman.client import PodmanClient, from_env
from podman.version import __version__

if sys.version_info < (3, 9):
raise ImportError("Python 3.6 or greater is required.")

# isort: unique-list
__all__ = ["PodmanClient", "__version__", "from_env"]
3 changes: 2 additions & 1 deletion podman/domain/images_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ def push(

@staticmethod
def _push_helper(
decode: bool, body: list[dict[str, Any]] # noqa: A003
decode: bool,
body: list[dict[str, Any]], # noqa: A003
) -> Iterator[Union[str, dict[str, Any]]]:
"""Helper needed to allow push() to return either a generator or a str."""
for entry in body:
Expand Down

0 comments on commit 4f8faa8

Please sign in to comment.