Skip to content

Commit 803af38

Browse files
authored
Merge pull request #21 from gi-yt/patch-1
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
2 parents f9e75f0 + 449f60f commit 803af38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

termpdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,7 @@ def main(args=sys.argv):
18511851
# set up thread to watch for file changes
18521852
file_change = threading.Event()
18531853
file_watch = threading.Thread(target=watch_for_file_change, args=(file_change, doc.filename))
1854-
file_watch.setDaemon(True)
1854+
file_watch.daemon = True
18551855
file_watch.start()
18561856

18571857
doc_viewer = threading.Thread(target=view, args=(file_change, doc))

0 commit comments

Comments
 (0)