Skip to content

Commit

Permalink
setDaemon -> daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed Jun 2, 2024
1 parent c705bff commit 2082f83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dhcpy6d/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, name='', store_type=None, query_queue=None, answer_queue=None
self.query_queue = query_queue
self.answer_queue = answer_queue
self.store = store_type
self.setDaemon(True)
self.daemon = True

def run(self):
"""
Expand Down
8 changes: 4 additions & 4 deletions dhcpy6d/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class DNSQueryThread(Thread):

def __init__(self):
Thread.__init__(self, name='DNSQuery')
self.setDaemon(True)
self.daemon = True

def run(self):
# wait for new queries in queue until the end of the world
Expand Down Expand Up @@ -99,7 +99,7 @@ class TidyUpThread(Thread):

def __init__(self):
Thread.__init__(self, name='TidyUp')
self.setDaemon(True)
self.daemon = True

def run(self):
try:
Expand Down Expand Up @@ -196,7 +196,7 @@ class RouteThread(Thread):

def __init__(self, route_queue):
Thread.__init__(self, name='Route')
self.setDaemon(True)
self.daemon = True
self.route_queue = route_queue

def run(self):
Expand Down Expand Up @@ -230,7 +230,7 @@ class TimerThread(Thread):

def __init__(self):
Thread.__init__(self, name='Timer')
self.setDaemon(True)
self.daemon = True

def run(self):
while True:
Expand Down

0 comments on commit 2082f83

Please sign in to comment.