diff --git a/aexpect/ops_windows.py b/aexpect/ops_windows.py index e8124a3..3afd7ad 100644 --- a/aexpect/ops_windows.py +++ b/aexpect/ops_windows.py @@ -572,8 +572,7 @@ def curl(session, url, proxy_address=None, proxy_port=None, insecure=False): """ # extra indentation is not allowed within PS heredocs # pylint: disable=C0301 - skip_ssl_template = dedent( - """\ + skip_ssl_template = dedent("""\ Add-Type -Language CSharp @" namespace System.Net { @@ -588,8 +587,7 @@ def curl(session, url, proxy_address=None, proxy_port=None, insecure=False): } } "@; - [System.Net.Util]::Init()""" - ) + [System.Net.Util]::Init()""") # TODO: WebRequest (wrapper on top of System.Net.WebClient) is painfully slow # for some reason compared to the 3rd-party curl.exe tool, but let's use it for now. diff --git a/aexpect/rss_client.py b/aexpect/rss_client.py index c2137ee..d1c3f75 100644 --- a/aexpect/rss_client.py +++ b/aexpect/rss_client.py @@ -269,7 +269,7 @@ def _receive_msg(self, timeout=60): def _handle_transfer_error(self): # Save original exception - (_type, error, traceback) = sys.exc_info() + _type, error, traceback = sys.exc_info() try: # See if we can get an error message msg = self._receive_msg() diff --git a/aexpect/scripts/aexpect_helper.py b/aexpect/scripts/aexpect_helper.py index 6cbb609..3c9e473 100755 --- a/aexpect/scripts/aexpect_helper.py +++ b/aexpect/scripts/aexpect_helper.py @@ -81,7 +81,7 @@ def main(): # too-many-* pylint:disable=R0914,R0912,R0915 os.putenv("TERM", "dumb") server_log.info("Forking child process for command") - (shell_pid, shell_fd) = pty.fork() + shell_pid, shell_fd = pty.fork() if shell_pid == 0: # Child process: run the command in a subshell if len(command) > 255: diff --git a/requirements-travis.txt b/requirements-travis.txt index d25483c..a7a5e7f 100644 --- a/requirements-travis.txt +++ b/requirements-travis.txt @@ -2,4 +2,4 @@ setuptools==80.8.0 pycodestyle==2.13.0 inspektor==0.5.3 pytest==9.0.3 -black==24.4.2 +black==26.3.1