[totem/gnome-3-30] opensubtitles: Merge comparisons with "in"
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-30] opensubtitles: Merge comparisons with "in"
- Date: Tue, 11 Dec 2018 16:13:59 +0000 (UTC)
commit 90b9898ed5f134289cc3106a9738e89338ab332d
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 14 16:53:23 2018 +0100
opensubtitles: Merge comparisons with "in"
Consider merging these comparisons with "in" to "scheme in ('dvd', 'http',
'dvb', 'vcd')" (consider-using-in)
src/plugins/opensubtitles/opensubtitles.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index bb15e0dd..a3f5edfd 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -540,8 +540,7 @@ class OpenSubtitles (GObject.Object, # pylint: disable=R0902
current_file = Gio.file_new_for_uri (self._totem.get_current_mrl ()) # pylint: disable=no-member
scheme = current_file.get_uri_scheme ()
- if (scheme == 'dvd' or scheme == 'http' or
- scheme == 'dvb' or scheme == 'vcd'):
+ if scheme in ('dvd', 'http', 'dvb', 'vcd'):
return False
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]