summaryrefslogtreecommitdiff
path: root/src/plugins/pythonconsole/console.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pythonconsole/console.py')
-rw-r--r--src/plugins/pythonconsole/console.py12
1 files changed, 6 insertions, 6 deletions
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 @@ class OutFile:
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