[totem/wip/hadess/re-enable-pylint: 2/10] opensubtitles: Fix "string statement with no effect"




commit b8c1471c18c5e44f94b7018e178a1627fb2af7a0
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 23 16:00:03 2022 +0200

    opensubtitles: Fix "string statement with no effect"
    
    src/plugins/opensubtitles/opensubtitles.py:345:12: W0105: String statement has no effect 
(pointless-string-statement)

 src/plugins/opensubtitles/opensubtitles.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index ac7a04a0b..5caa26ddb 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -341,7 +341,7 @@ class OpenSubtitlesModel:
                 self._lock.release ()
                 return (result['data'], message)
 
-            """Not found by movie_hash and moviebytesize, fallback to title"""
+            # Not found by movie_hash and moviebytesize, fallback to title
             searchdata = {'sublanguageid': self.lang,
                           'query'   : movie_title}
             try:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]