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




commit 1e7655dac34bcb802668105216cbb5f3ecc47b5f
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]