Skip to content

Commit c03da67

Browse files
tirkarthiByron
authored andcommitted
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
1 parent 9e7314c commit c03da67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/cmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def pump_stream(cmdline, name, stream, is_decode, handler):
103103
for name, stream, handler in pumps:
104104
t = threading.Thread(target=pump_stream,
105105
args=(cmdline, name, stream, decode_streams, handler))
106-
t.setDaemon(True)
106+
t.daemon = True
107107
t.start()
108108
threads.append(t)
109109

0 commit comments

Comments
 (0)