Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove paramiko hacks #464

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

uruun
Copy link

@uruun uruun commented Sep 2, 2024

Remove two paramiko hacks done in client.py. They both seem like very old workarounds and their functionality can be achieved through official paramiko APIs.

The first one set the banner timeout for paramiko Transport to 45 seconds. banner_timeout can be set in paramiko SSHClient.connect or with Transport.banner_timeout, I went with connect as it seems to be the expected way to do it. This might be a breaking change if someone is using the SSHLibrary SSHClient.client directly as then the timeout will be the default 15 seconds.

The second one is a workaround for % symbols in file paths reported in 2012: http://code.google.com/p/robotframework-sshlibrary/issues/detail?id=55 . It seems this has been fixed in paramiko in 2014 here: paramiko/paramiko@6e9abc3 . As it has been fixed for so long I hope everyone moved on to newer paramiko and this is not needed anymore.

Also removed small remaining Python 2 compatibility.

@uruun
Copy link
Author

uruun commented Sep 3, 2024

The Read Until With Encoding Errors On Strict test is failing because of #431, issue #465 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant