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/util.py | |
parent | 53460723a6ab342129ac456ef6a4ba5ef676b577 (diff) | |
download | paramiko-8367147e883583bba71cd660d1bae880a66eb27c.tar.gz |
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/util.py')
-rw-r--r-- | paramiko/util.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/paramiko/util.py b/paramiko/util.py index f6125eb1..76941ff4 100644 --- a/paramiko/util.py +++ b/paramiko/util.py @@ -21,7 +21,6 @@ Useful functions used by the rest of paramiko. """ -import errno import sys import struct import traceback @@ -273,16 +272,6 @@ def get_logger(name): return logger -def retry_on_signal(function): - """Retries function until it doesn't raise an EINTR error""" - while True: - try: - return function() - except EnvironmentError as e: - if e.errno != errno.EINTR: - raise - - def constant_time_bytes_eq(a, b): if len(a) != len(b): return False |