Skip to content

Commit

Permalink
Set daemon attribute instead of using setDaemon method that was depre…
Browse files Browse the repository at this point in the history
…cated in Python 3.10.
  • Loading branch information
tirkarthi committed Mar 28, 2022
1 parent dbcbfee commit 0b14eb8
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 0b14eb8

Please sign in to comment.