Skip to content

Commit 0b14eb8

Browse files
committed
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10.
1 parent dbcbfee commit 0b14eb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/media2warc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ def main():
251251

252252
for i in range(threads):
253253
t = GetResource(q)
254-
t.setDaemon(True)
254+
t.daemon = True
255255
t.start()
256256

257257
wt = WriteWarc(out_queue, os.path.join(args.archive_dir, "warc.warc"))
258-
wt.setDaemon(True)
258+
wt.daemon = True
259259
wt.start()
260260

261261
q.join()

0 commit comments

Comments
 (0)