diff options
-rw-r--r-- | bitbake/lib/bb/ui/taskexp.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 2 | ||||
-rw-r--r-- | bitbake/lib/toaster/orm/management/commands/lsupdates.py | 2 | ||||
-rw-r--r-- | bitbake/lib/toaster/tests/commands/test_runbuilds.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/taskexp.py b/bitbake/lib/bb/ui/taskexp.py index c00eaf6638..bedfd69b09 100644 --- a/bitbake/lib/bb/ui/taskexp.py +++ b/bitbake/lib/bb/ui/taskexp.py | |||
@@ -177,7 +177,7 @@ class gtkthread(threading.Thread): | |||
177 | quit = threading.Event() | 177 | quit = threading.Event() |
178 | def __init__(self, shutdown): | 178 | def __init__(self, shutdown): |
179 | threading.Thread.__init__(self) | 179 | threading.Thread.__init__(self) |
180 | self.setDaemon(True) | 180 | self.daemon = True |
181 | self.shutdown = shutdown | 181 | self.shutdown = shutdown |
182 | if not Gtk.init_check()[0]: | 182 | if not Gtk.init_check()[0]: |
183 | sys.stderr.write("Gtk+ init failed. Make sure DISPLAY variable is set.\n") | 183 | sys.stderr.write("Gtk+ init failed. Make sure DISPLAY variable is set.\n") |
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index adbe698939..c2f830d530 100644 --- a/bitbake/lib/bb/ui/uievent.py +++ b/bitbake/lib/bb/ui/uievent.py | |||
@@ -65,7 +65,7 @@ class BBUIEventQueue: | |||
65 | self.server = server | 65 | self.server = server |
66 | 66 | ||
67 | self.t = threading.Thread() | 67 | self.t = threading.Thread() |
68 | self.t.setDaemon(True) | 68 | self.t.daemon = True |
69 | self.t.run = self.startCallbackHandler | 69 | self.t.run = self.startCallbackHandler |
70 | self.t.start() | 70 | self.t.start() |
71 | 71 | ||
diff --git a/bitbake/lib/toaster/orm/management/commands/lsupdates.py b/bitbake/lib/toaster/orm/management/commands/lsupdates.py index eb097555e2..6d64830ebd 100644 --- a/bitbake/lib/toaster/orm/management/commands/lsupdates.py +++ b/bitbake/lib/toaster/orm/management/commands/lsupdates.py | |||
@@ -40,7 +40,7 @@ class Spinner(threading.Thread): | |||
40 | """ A simple progress spinner to indicate download/parsing is happening""" | 40 | """ A simple progress spinner to indicate download/parsing is happening""" |
41 | def __init__(self, *args, **kwargs): | 41 | def __init__(self, *args, **kwargs): |
42 | super(Spinner, self).__init__(*args, **kwargs) | 42 | super(Spinner, self).__init__(*args, **kwargs) |
43 | self.setDaemon(True) | 43 | self.daemon = True |
44 | self.signal = True | 44 | self.signal = True |
45 | 45 | ||
46 | def run(self): | 46 | def run(self): |
diff --git a/bitbake/lib/toaster/tests/commands/test_runbuilds.py b/bitbake/lib/toaster/tests/commands/test_runbuilds.py index e223b95fcb..c77d6cf490 100644 --- a/bitbake/lib/toaster/tests/commands/test_runbuilds.py +++ b/bitbake/lib/toaster/tests/commands/test_runbuilds.py | |||
@@ -24,7 +24,7 @@ class KillRunbuilds(threading.Thread): | |||
24 | """ Kill the runbuilds process after an amount of time """ | 24 | """ Kill the runbuilds process after an amount of time """ |
25 | def __init__(self, *args, **kwargs): | 25 | def __init__(self, *args, **kwargs): |
26 | super(KillRunbuilds, self).__init__(*args, **kwargs) | 26 | super(KillRunbuilds, self).__init__(*args, **kwargs) |
27 | self.setDaemon(True) | 27 | self.daemon = True |
28 | 28 | ||
29 | def run(self): | 29 | def run(self): |
30 | time.sleep(5) | 30 | time.sleep(5) |