summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>2021-04-17 05:31:33 +0000
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-04-17 13:40:44 +0800
commitc03da67aabaab6852020edf8c28533d88c87e43f (patch)
tree9fc84735216a54096630ab5e6d9eec662ab224d0
parent9e7314c57ef56aaf5fd27a311bfa6a01d18366a2 (diff)
downloadgitpython-c03da67aabaab6852020edf8c28533d88c87e43f.tar.gz
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
-rw-r--r--git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 40e32e37..e38261a0 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -103,7 +103,7 @@ def handle_process_output(process, stdout_handler, stderr_handler,
for name, stream, handler in pumps:
t = threading.Thread(target=pump_stream,
args=(cmdline, name, stream, decode_streams, handler))
- t.setDaemon(True)
+ t.daemon = True
t.start()
threads.append(t)