[totem/wip/hadess/fix-pylint] dbusservice: Fix Unnecessary "elif" after "raise"
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/fix-pylint] dbusservice: Fix Unnecessary "elif" after "raise"
- Date: Fri, 12 Jul 2019 09:00:03 +0000 (UTC)
commit 3e1b8259662f3721dcd6f3a65f79440bbe308ab1
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 12 10:58:58 2019 +0200
dbusservice: Fix Unnecessary "elif" after "raise"
src/plugins/dbusservice/dbusservice.py:217:8: R1720: Unnecessary "elif" after "raise" (no-else-raise)
src/plugins/dbusservice/dbusservice.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/dbusservice/dbusservice.py b/src/plugins/dbusservice/dbusservice.py
index 5f35bf9fc..e65a80baa 100644
--- a/src/plugins/dbusservice/dbusservice.py
+++ b/src/plugins/dbusservice/dbusservice.py
@@ -218,7 +218,8 @@ class Root (dbus.service.Object): # pylint: disable=R0904
raise dbus.exceptions.DBusException (
'org.mpris.MediaPlayer2.ReadOnlyProperty',
_('The property ā%sā is not writeable.'))
- elif interface_name == 'org.mpris.MediaPlayer2.Player':
+
+ if interface_name == 'org.mpris.MediaPlayer2.Player':
if property_name == 'LoopStatus':
self.totem.remote_set_setting (
Totem.RemoteSetting.REPEAT, (new_value == 'Playlist'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]