Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
corka149 committed Jun 19, 2024
1 parent bca97bd commit cbee50f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/portforward/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def forward(
waiting,
log_level,
kube_context,
bind_ip
bind_ip,
)

try:
Expand Down Expand Up @@ -116,7 +116,7 @@ def __init__(
waiting,
log_level,
kube_context,
bind_ip
bind_ip,
)

def forward(self):
Expand Down Expand Up @@ -218,7 +218,9 @@ def _validate_ip_address(ip_address):
if not ip_address:
return "127.0.0.1"

if isinstance(ip_address, ipaddress.IPv4Address) or isinstance(ip_address, ipaddress.IPv4Address):
if isinstance(ip_address, ipaddress.IPv4Address) or isinstance(
ip_address, ipaddress.IPv4Address
):
return str(ip_address)

return str(ipaddress.ip_address(ip_address))
Expand Down

0 comments on commit cbee50f

Please sign in to comment.