summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-01-11 12:32:02 -0500
committerCole Robinson <crobinso@redhat.com>2022-01-11 12:32:23 -0500
commitcdd7061f8e0dc2885b48fbe1f085f028c42fd75c (patch)
tree3309321eedd5ed2645686ae6c3d0ab5b03ed65b8
parentc08e3e63972c6c66ee89290152860c5af445cc9c (diff)
downloadvirt-manager-cdd7061f8e0dc2885b48fbe1f085f028c42fd75c.tar.gz
pylint: Fix some deprecation warnings and minor bits
Signed-off-by: Cole Robinson <crobinso@redhat.com>
-rw-r--r--virtManager/createvm.py2
-rw-r--r--virtManager/object/domain.py2
-rw-r--r--virtinst/osdict.py2
-rw-r--r--virtinst/storage.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/virtManager/createvm.py b/virtManager/createvm.py
index a184f422..7df8a759 100644
--- a/virtManager/createvm.py
+++ b/virtManager/createvm.py
@@ -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..."))
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py
index 6c8469d4..31f463a5 100644
--- a/virtManager/object/domain.py
+++ b/virtManager/object/domain.py
@@ -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:
diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index bc4701ef..e68af80c 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -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):
diff --git a/virtinst/storage.py b/virtinst/storage.py
index 49db092e..05d2d6c2 100644
--- a/virtinst/storage.py
+++ b/virtinst/storage.py
@@ -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()