Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions aexpect/ops_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion aexpect/rss_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion aexpect/scripts/aexpect_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion requirements-travis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading