pylint: Fix some deprecation warnings and minor bits

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-01-11 12:32:02 -05:00
parent c08e3e6397
commit cdd7061f8e
4 changed files with 4 additions and 4 deletions

View File

@ -1776,7 +1776,7 @@ class vmmCreateVM(vmmGObjectUI):
detectThread = threading.Thread(target=self._detect_thread_cb, detectThread = threading.Thread(target=self._detect_thread_cb,
name="Actual media detection", name="Actual media detection",
args=(cdrom, location, thread_results)) args=(cdrom, location, thread_results))
detectThread.setDaemon(True) detectThread.daemon = True
detectThread.start() detectThread.start()
self._os_list.search_entry.set_text(_("Detecting...")) self._os_list.search_entry.set_text(_("Detecting..."))

View File

@ -28,7 +28,7 @@ class _SENTINEL(object):
def start_job_progress_thread(vm, meter, progtext): def start_job_progress_thread(vm, meter, progtext):
current_thread = threading.currentThread() current_thread = threading.current_thread()
def jobinfo_cb(): def jobinfo_cb():
while True: while True:

View File

@ -606,7 +606,7 @@ class _OsVariant(object):
if self.distro not in ["centos", "rhel", "fedora"]: if self.distro not in ["centos", "rhel", "fedora"]:
return None 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 return "inst.repo" # pragma: no cover
def _get_generic_location(self, treelist, arch, profile): def _get_generic_location(self, treelist, arch, profile):

View File

@ -680,7 +680,7 @@ class StorageVolume(_StorageObject):
t = threading.Thread(target=_progress_thread, t = threading.Thread(target=_progress_thread,
name="Checking storage allocation", name="Checking storage allocation",
args=(self.name, self.pool, meter, event)) args=(self.name, self.pool, meter, event))
t.setDaemon(True) t.daemon = True
try: try:
t.start() t.start()