From 05599a9020f8f3b00aa68ba4aa211f9c88a07ff4 Mon Sep 17 00:00:00 2001 From: Fabian Sylvester Date: Sat, 13 Apr 2024 18:21:56 +0000 Subject: [PATCH] Cleanup np_pithos.py (#417) * make all active python linters happy --- segments/np_pithos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/segments/np_pithos.py b/segments/np_pithos.py index 9d022e60..e8f85a4f 100755 --- a/segments/np_pithos.py +++ b/segments/np_pithos.py @@ -3,7 +3,7 @@ pithos_bus = dbus.SessionBus() -pithos = pithos_bus.get_object('net.kevinmehall.Pithos', '/net/kevinmehall/Pithos') -props = pithos.get_dbus_method('GetCurrentSong', 'net.kevinmehall.Pithos') +pithos = pithos_bus.get_object("net.kevinmehall.Pithos", "/net/kevinmehall/Pithos") +props = pithos.get_dbus_method("GetCurrentSong", "net.kevinmehall.Pithos") -print props()["artist"] + " - " + props()["title"] +print(props()["artist"] + " - " + props()["title"])