pylint: Fix some deprecation warnings and minor bits
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
c08e3e6397
commit
cdd7061f8e
|
@ -1776,7 +1776,7 @@ class vmmCreateVM(vmmGObjectUI):
|
|||
detectThread = threading.Thread(target=self._detect_thread_cb,
|
||||
name="Actual media detection",
|
||||
args=(cdrom, location, thread_results))
|
||||
detectThread.setDaemon(True)
|
||||
detectThread.daemon = True
|
||||
detectThread.start()
|
||||
|
||||
self._os_list.search_entry.set_text(_("Detecting..."))
|
||||
|
|
|
@ -28,7 +28,7 @@ class _SENTINEL(object):
|
|||
|
||||
|
||||
def start_job_progress_thread(vm, meter, progtext):
|
||||
current_thread = threading.currentThread()
|
||||
current_thread = threading.current_thread()
|
||||
|
||||
def jobinfo_cb():
|
||||
while True:
|
||||
|
|
|
@ -606,7 +606,7 @@ class _OsVariant(object):
|
|||
if self.distro not in ["centos", "rhel", "fedora"]:
|
||||
return None
|
||||
|
||||
# Default for RH distros, incase libosinfo data isn't complete
|
||||
# Default for RH distros, in case libosinfo data isn't complete
|
||||
return "inst.repo" # pragma: no cover
|
||||
|
||||
def _get_generic_location(self, treelist, arch, profile):
|
||||
|
|
|
@ -680,7 +680,7 @@ class StorageVolume(_StorageObject):
|
|||
t = threading.Thread(target=_progress_thread,
|
||||
name="Checking storage allocation",
|
||||
args=(self.name, self.pool, meter, event))
|
||||
t.setDaemon(True)
|
||||
t.daemon = True
|
||||
|
||||
try:
|
||||
t.start()
|
||||
|
|
Loading…
Reference in New Issue