Skip to content

Commit

Permalink
pythonconsole: Remove ignore for removed checkers
Browse files Browse the repository at this point in the history
Command line:1:0: R0022: Useless option value for '-d', 'bad-continuation' was removed from pylint, see pylint-dev/pylint#3571. (useless-option-value)
totem/src/plugins/pythonconsole/console.py:319:0: R0022: Useless option value for 'disable', 'R0201' was moved to an optional extension, see https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)
totem/src/plugins/pythonconsole/console.py:321:0: R0022: Useless option value for 'disable', 'R0201' was moved to an optional extension, see https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)
totem/src/plugins/pythonconsole/console.py:323:0: R0022: Useless option value for 'disable', 'R0201' was moved to an optional extension, see https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)
totem/src/plugins/pythonconsole/console.py:325:0: R0022: Useless option value for 'disable', 'R0201' was moved to an optional extension, see https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)
totem/src/plugins/pythonconsole/console.py:331:0: R0022: Useless option value for 'disable', 'R0201' was moved to an optional extension, see https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)
totem/src/plugins/pythonconsole/console.py:333:0: R0022: Useless option value for 'disable', 'R0201' was moved to an optional extension, see https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)
  • Loading branch information
hadess committed Dec 5, 2022
1 parent 1b27b7d commit 616373c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/plugins/opensubtitles/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions src/plugins/pythonconsole/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 616373c

Please sign in to comment.