[gnome-music/wip/jfelder/tracker3: 2/3] style fixes
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/tracker3: 2/3] style fixes
- Date: Mon, 24 Aug 2020 14:01:58 +0000 (UTC)
commit 5b40c4202b170ec1f8f1b035c3cb7aabd4a1b17c
Author: Jean Felder <jfelder src gnome org>
Date: Mon Aug 24 15:25:59 2020 +0200
style fixes
gnomemusic/trackerwrapper.py | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
---
diff --git a/gnomemusic/trackerwrapper.py b/gnomemusic/trackerwrapper.py
index 07b68caf..d7ba11c9 100644
--- a/gnomemusic/trackerwrapper.py
+++ b/gnomemusic/trackerwrapper.py
@@ -68,7 +68,7 @@ class TrackerWrapper(GObject.GObject):
return os.path.exists("/.flatpak-info")
def _setup_host_miner_fs(self):
- self._miner_fs_busname = 'org.freedesktop.Tracker3.Miner.Files'
+ self._miner_fs_busname = "org.freedesktop.Tracker3.Miner.Files"
self._log.debug("Connecting to session-wide Tracker indexer at {}"
.format(self._miner_fs_busname))
@@ -78,21 +78,22 @@ class TrackerWrapper(GObject.GObject):
self._miner_fs_busname, None, None)
self._log.info("Using session-wide tracker-miner-fs-3")
self._miner_fs_available = TrackerState.AVAILABLE
- self.notify('tracker-available')
+ self.notify("tracker-available")
except GLib.Error as error:
self._log.warning(
- "Could not connect to host Tracker miner-fs at {}: {}"
- .format(self._miner_fs_busname, error))
+ "Could not connect to host Tracker miner-fs at {}: {}".format(
+ self._miner_fs_busname, error))
if self._in_flatpak():
self._setup_local_miner_fs()
else:
self._miner_fs_busname = None
- self.notify('tracker-available')
+ self.notify("tracker-available")
def _setup_local_miner_fs(self):
- self._miner_fs_busname = self._application_id + '.Tracker3.Miner.Files'
- self._log.debug("Connecting to bundled Tracker indexer at {}"
- .format(self._miner_fs_busname))
+ self._miner_fs_busname = self._application_id + ".Tracker3.Miner.Files"
+ self._log.debug(
+ "Connecting to bundled Tracker indexer at {}".format(
+ self._miner_fs_busname))
# Calling self._application.get_dbus_connection() seems to return None
# here, so get the bus directly from Gio.
@@ -104,11 +105,11 @@ class TrackerWrapper(GObject.GObject):
bus = Gio.bus_get_finish(result)
miner_fs_startup_timeout_msec = 30 * 1000
- miner_fs_object_path = '/org/freedesktop/Tracker3/Miner/Files'
+ miner_fs_object_path = "/org/freedesktop/Tracker3/Miner/Files"
bus.call(
self._miner_fs_busname, miner_fs_object_path,
- 'org.freedesktop.DBus.Peer', 'Ping', None, None,
+ "org.freedesktop.DBus.Peer", "Ping", None, None,
Gio.DBusCallFlags.NONE, miner_fs_startup_timeout_msec, None,
self._setup_local_miner_fs_ping_cb)
@@ -119,13 +120,13 @@ class TrackerWrapper(GObject.GObject):
self._miner_fs = Tracker.SparqlConnection.bus_new(
self._miner_fs_busname, None, None)
self._miner_fs_available = TrackerState.AVAILABLE
- self.notify('tracker-available')
+ self.notify("tracker-available")
except GLib.Error as error:
self._log.warning(
- "Could not start local Tracker miner-fs at {}: {}"
- .format(self._miner_fs_busname, error))
+ "Could not start local Tracker miner-fs at {}: {}".format(
+ self._miner_fs_busname, error))
self._miner_fs_busname = None
- self.notify('tracker-available')
+ self.notify("tracker-available")
def _setup_local_db(self):
# Open a local Tracker database.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]