diff --git a/src/plugins/opensubtitles/meson.build b/src/plugins/opensubtitles/meson.build index 38fcc93fb..e47681b95 100644 --- a/src/plugins/opensubtitles/meson.build +++ b/src/plugins/opensubtitles/meson.build @@ -42,7 +42,7 @@ install_data( if pylint.found() test('pylint-' + plugin_name, pylint, - args: pylint_flags + ['-d', 'bad-continuation' ] + files([ plugin_name + '.py', 'hash.py' ]), + args: pylint_flags + files([ plugin_name + '.py', 'hash.py' ]), env: nomalloc, timeout: 120) endif diff --git a/src/plugins/pythonconsole/console.py b/src/plugins/pythonconsole/console.py index 7a8114114..aae015965 100644 --- a/src/plugins/pythonconsole/console.py +++ b/src/plugins/pythonconsole/console.py @@ -316,20 +316,20 @@ def flush(self): pass def fileno(self): return self.file_no - def isatty(self): # pylint: disable=R0201 + def isatty(self): return 0 - def read(self, _): # pylint: disable=R0201 + def read(self, _): return '' - def readline(self): # pylint: disable=R0201 + def readline(self): return '' - def readlines(self): # pylint: disable=R0201 + def readlines(self): return [] def write(self, seg): self.console.write(seg, self.tag) def writelines(self, lines): self.console.write(lines, self.tag) - def seek(self, _): # pylint: disable=R0201 + def seek(self, _): raise IOError((29, 'Illegal seek')) - def tell(self): # pylint: disable=R0201 + def tell(self): raise IOError((29, 'Illegal seek')) truncate = tell