mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix PEP 8 issues.
This commit is contained in:
@@ -291,8 +291,7 @@ def ports_expand(ports):
|
||||
if not isinstance(port, str):
|
||||
ports_expanded.append((port,) * 2)
|
||||
elif '-' in port:
|
||||
ports_expanded.append(tuple(p.strip() for p in
|
||||
port.split('-', 1)))
|
||||
ports_expanded.append(tuple(p.strip() for p in port.split('-', 1)))
|
||||
else:
|
||||
ports_expanded.append((port.strip(),) * 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user