Skip to content

Commit

Permalink
Fix the Python Black formatting.
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Balazs <milanbalazs01@gmail.com>
  • Loading branch information
milanbalazs committed Jan 18, 2024
1 parent cd11e38 commit a26194d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions podman/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,15 @@ def __init__(
# and the below section is needed for backward compatible.
# This section can be removed in a future release.
if max_pools_size is not None:
warnings.warn("'max_pools_size' parameter is deprecated! "
"Please use 'max_pool_size' parameter.", DeprecationWarning)
warnings.warn(
"'max_pools_size' parameter is deprecated! Please use 'max_pool_size' parameter.",
DeprecationWarning,
)
if max_pool_size is not None:
raise ValueError("Both of 'max_pools_size' and 'max_pool_size' parameters are set. "
"Please use only the 'max_pool_size', 'max_pools_size' is deprecated!")
raise ValueError(
"Both of 'max_pools_size' and 'max_pool_size' parameters are set. "
"Please use only the 'max_pool_size', 'max_pools_size' is deprecated!"
)
max_pool_size = max_pools_size

if num_pools is not None:
Expand Down

0 comments on commit a26194d

Please sign in to comment.