Skip to content

Commit

Permalink
style: Ignore long-line
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Doktor <[email protected]>
  • Loading branch information
ldoktor committed Dec 8, 2023
1 parent 3f9bb64 commit 45187d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aexpect/ops_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ def find_unused_port(session, start_port=10024):
:returns: unused port that was found
:rtype: int
"""
# pylint: disable=C0301
output = ps_cmd(session, f"""
$port = {start_port}
while($true) {{
Expand All @@ -521,6 +522,7 @@ def find_unused_port(session, start_port=10024):
Write-Host "::unused=$port"
""")
# pylint: enable=C0301
port = re.search(r"::unused=(\d+)", output).group(1)
return int(port)

Expand Down

0 comments on commit 45187d0

Please sign in to comment.