diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 21:25:52 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 21:33:25 -0500 |
commit | 8367147e883583bba71cd660d1bae880a66eb27c (patch) | |
tree | 5a40cde0c4f30faf6c66c5cc17919a0bcd577921 /paramiko/agent.py | |
parent | 53460723a6ab342129ac456ef6a4ba5ef676b577 (diff) |
Nuke retry_on_signal, pointless on modern Py3
Additionally, other bits of code that retry EINTR can similarly just go
away.
Diffstat (limited to 'paramiko/agent.py')
-rw-r--r-- | paramiko/agent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/agent.py b/paramiko/agent.py index f2d57ea5..c1a07390 100644 --- a/paramiko/agent.py +++ b/paramiko/agent.py @@ -34,7 +34,7 @@ from paramiko.common import io_sleep, byte_chr from paramiko.ssh_exception import SSHException, AuthenticationException from paramiko.message import Message from paramiko.pkey import PKey -from paramiko.util import retry_on_signal, asbytes +from paramiko.util import asbytes cSSH2_AGENTC_REQUEST_IDENTITIES = byte_chr(11) SSH2_AGENT_IDENTITIES_ANSWER = 12 @@ -213,7 +213,7 @@ def get_agent_connection(): if ("SSH_AUTH_SOCK" in os.environ) and (sys.platform != "win32"): conn = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) try: - retry_on_signal(lambda: conn.connect(os.environ["SSH_AUTH_SOCK"])) + conn.connect(os.environ["SSH_AUTH_SOCK"]) return conn except: # probably a dangling env var: the ssh agent is gone |