diff options
| author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2021-04-17 08:10:37 +0000 |
|---|---|---|
| committer | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2021-04-17 08:10:37 +0000 |
| commit | 0bc643ea88748e08a095e3f1a43480c9113d45b8 (patch) | |
| tree | 7f250f13c1fe8a2b1ca455feb48f184c912e60ae | |
| parent | 02c38338b4ade8b0b0e85be613bc2b9dbfe68a7b (diff) | |
| download | pexpect-0bc643ea88748e08a095e3f1a43480c9113d45b8.tar.gz | |
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
| -rw-r--r-- | pexpect/popen_spawn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/popen_spawn.py b/pexpect/popen_spawn.py index 4bb58cf..e6bdf07 100644 --- a/pexpect/popen_spawn.py +++ b/pexpect/popen_spawn.py @@ -57,7 +57,7 @@ class PopenSpawn(SpawnBase): self._read_queue = Queue() self._read_thread = threading.Thread(target=self._read_incoming) - self._read_thread.setDaemon(True) + self._read_thread.daemon = True self._read_thread.start() _read_reached_eof = False |
