From 45187d008b7a641ae6289b60d8ce38b39e918568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Fri, 8 Dec 2023 09:25:06 +0100 Subject: [PATCH] style: Ignore long-line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lukáš Doktor --- aexpect/ops_windows.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aexpect/ops_windows.py b/aexpect/ops_windows.py index 8c10f33..dc0798b 100644 --- a/aexpect/ops_windows.py +++ b/aexpect/ops_windows.py @@ -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) {{ @@ -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)