Skip to content

Commit

Permalink
Fix deprecation warning due to threading.Thread.setDaemon call
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohannes committed Mar 6, 2023
1 parent 323f1fa commit 863673c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xl/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,7 @@ class ProgressThread(GObject.Object, threading.Thread):

def __init__(self):
GObject.Object.__init__(self)
threading.Thread.__init__(self)
self.setDaemon(True)
threading.Thread.__init__(self, daemon=True)

def stop(self):
"""
Expand Down

0 comments on commit 863673c

Please sign in to comment.