diff options
author | Narendra-Neerukonda <narendra.klu9@gmail.com> | 2021-06-19 14:45:57 +0530 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2022-04-25 10:51:38 -0400 |
commit | e8cf0af3c1b4a2cc541d1fbef07faf6dab7e3559 (patch) | |
tree | 67b04097c2841b84bf3cfe024121db4ffef129f3 /paramiko/sftp_file.py | |
parent | d7fe051087fc9bd31dc0c42da63b3ae4852f6d2d (diff) | |
download | paramiko-e8cf0af3c1b4a2cc541d1fbef07faf6dab7e3559.tar.gz |
threading related deprecation fixes for python 3.10
Diffstat (limited to 'paramiko/sftp_file.py')
-rw-r--r-- | paramiko/sftp_file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index 0104d857..57e04175 100644 --- a/paramiko/sftp_file.py +++ b/paramiko/sftp_file.py @@ -527,7 +527,7 @@ class SFTPFile(BufferedFile): self._prefetch_done = False t = threading.Thread(target=self._prefetch_thread, args=(chunks,)) - t.setDaemon(True) + t.daemon = True t.start() def _prefetch_thread(self, chunks): |