Skip to content

Commit

Permalink
Merge pull request #617 from tirkarthi/fix-threading
Browse files Browse the repository at this point in the history
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10.
  • Loading branch information
edsu authored Mar 28, 2022
2 parents dbcbfee + 0b14eb8 commit e025c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/media2warc.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ def main():

for i in range(threads):
t = GetResource(q)
t.setDaemon(True)
t.daemon = True
t.start()

wt = WriteWarc(out_queue, os.path.join(args.archive_dir, "warc.warc"))
wt.setDaemon(True)
wt.daemon = True
wt.start()

q.join()
Expand Down

0 comments on commit e025c64

Please sign in to comment.