mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Another 3.10 deprecation
This commit is contained in:
parent
7632beb8e0
commit
b6da6d9680
@ -140,8 +140,7 @@ class DeviceManager(Thread): # {{{
|
|||||||
'''
|
'''
|
||||||
:sleep_time: Time to sleep between device probes in secs
|
:sleep_time: Time to sleep between device probes in secs
|
||||||
'''
|
'''
|
||||||
Thread.__init__(self)
|
Thread.__init__(self, daemon=True)
|
||||||
self.setDaemon(True)
|
|
||||||
# [Device driver, Showing in GUI, Ejected]
|
# [Device driver, Showing in GUI, Ejected]
|
||||||
self.devices = list(device_plugins())
|
self.devices = list(device_plugins())
|
||||||
self.disabled_device_plugins = list(disabled_device_plugins())
|
self.disabled_device_plugins = list(disabled_device_plugins())
|
||||||
|
@ -278,8 +278,7 @@ class DBThread(Thread):
|
|||||||
CLOSE = '-------close---------'
|
CLOSE = '-------close---------'
|
||||||
|
|
||||||
def __init__(self, path, row_factory):
|
def __init__(self, path, row_factory):
|
||||||
Thread.__init__(self)
|
Thread.__init__(self, daemon=True)
|
||||||
self.setDaemon(True)
|
|
||||||
self.path = path
|
self.path = path
|
||||||
self.unhandled_error = (None, '')
|
self.unhandled_error = (None, '')
|
||||||
self.row_factory = row_factory
|
self.row_factory = row_factory
|
||||||
|
@ -77,9 +77,8 @@ class WorkerThread(threading.Thread):
|
|||||||
requestsQueue and resultQueue are instances of queue.Queue passed
|
requestsQueue and resultQueue are instances of queue.Queue passed
|
||||||
by the ThreadPool class when it creates a new worker thread.
|
by the ThreadPool class when it creates a new worker thread.
|
||||||
"""
|
"""
|
||||||
|
kwds['daemon'] = True
|
||||||
threading.Thread.__init__(self, **kwds)
|
threading.Thread.__init__(self, **kwds)
|
||||||
self.setDaemon(1)
|
|
||||||
self.workRequestQueue = requestsQueue
|
self.workRequestQueue = requestsQueue
|
||||||
self.resultQueue = resultsQueue
|
self.resultQueue = resultsQueue
|
||||||
self._dismissed = threading.Event()
|
self._dismissed = threading.Event()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user