Another 3.10 deprecation

This commit is contained in:
Kovid Goyal 2021-12-13 20:35:03 +05:30
parent 7632beb8e0
commit b6da6d9680
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 6 deletions

View File

@ -140,8 +140,7 @@ class DeviceManager(Thread): # {{{
'''
:sleep_time: Time to sleep between device probes in secs
'''
Thread.__init__(self)
self.setDaemon(True)
Thread.__init__(self, daemon=True)
# [Device driver, Showing in GUI, Ejected]
self.devices = list(device_plugins())
self.disabled_device_plugins = list(disabled_device_plugins())

View File

@ -278,8 +278,7 @@ class DBThread(Thread):
CLOSE = '-------close---------'
def __init__(self, path, row_factory):
Thread.__init__(self)
self.setDaemon(True)
Thread.__init__(self, daemon=True)
self.path = path
self.unhandled_error = (None, '')
self.row_factory = row_factory

View File

@ -77,9 +77,8 @@ class WorkerThread(threading.Thread):
requestsQueue and resultQueue are instances of queue.Queue passed
by the ThreadPool class when it creates a new worker thread.
"""
kwds['daemon'] = True
threading.Thread.__init__(self, **kwds)
self.setDaemon(1)
self.workRequestQueue = requestsQueue
self.resultQueue = resultsQueue
self._dismissed = threading.Event()