diff --git a/dhcpy6d/storage/__init__.py b/dhcpy6d/storage/__init__.py index d8de439..782d61e 100644 --- a/dhcpy6d/storage/__init__.py +++ b/dhcpy6d/storage/__init__.py @@ -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): """ diff --git a/dhcpy6d/threads.py b/dhcpy6d/threads.py index d49507e..8a7bf92 100644 --- a/dhcpy6d/threads.py +++ b/dhcpy6d/threads.py @@ -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 @@ -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: @@ -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): @@ -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: