summaryrefslogtreecommitdiff
path: root/daemons/lvmdbusd/request.py
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2016-03-08 16:04:44 -0600
committerTony Asleson <tasleson@redhat.com>2016-03-08 16:07:35 -0600
commit6d19c14c28b24dded999d4bf50a4638581c649f5 (patch)
tree83ad509809f8e842ffbebb0aae6780ea96616636 /daemons/lvmdbusd/request.py
parent3f5629302abd2cfae97ef821da274384806d085a (diff)
downloadlvm2-6d19c14c28b24dded999d4bf50a4638581c649f5.tar.gz
lvmdbus: Fix deprecated warnings for GObject use
While running on F24 a number of warnings were being emitted from using the deprecated GObject instead of GLib. Tested on python 3.4 and 3.5. Signed-off-by: Tony Asleson <tasleson@redhat.com>
Diffstat (limited to 'daemons/lvmdbusd/request.py')
-rw-r--r--daemons/lvmdbusd/request.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemons/lvmdbusd/request.py b/daemons/lvmdbusd/request.py
index 683613119..cf258f182 100644
--- a/daemons/lvmdbusd/request.py
+++ b/daemons/lvmdbusd/request.py
@@ -9,7 +9,7 @@
import threading
# noinspection PyUnresolvedReferences
-from gi.repository import GObject
+from gi.repository import GLib
from .job import Job
from . import cfg
import traceback
@@ -40,7 +40,7 @@ class RequestEntry(object):
elif tmo == 0:
self._return_job()
else:
- self.timer_id = GObject.timeout_add_seconds(
+ self.timer_id = GLib.timeout_add_seconds(
tmo, RequestEntry._request_timeout, self)
@staticmethod
@@ -93,7 +93,7 @@ class RequestEntry(object):
self.done = True
if self.timer_id != -1:
# Try to prevent the timer from firing
- GObject.source_remove(self.timer_id)
+ GLib.source_remove(self.timer_id)
self._result = result
self._rc = error_rc