parent
132d488c5d
commit
5f99e1f8fb
|
@ -399,6 +399,9 @@ class ConsoleBuffer(Buffer):
|
||||||
def readonly(self):
|
def readonly(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
class InterpreterPipeError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
class InterpreterBuffer(Buffer):
|
class InterpreterBuffer(Buffer):
|
||||||
_basename = 'Interpreter'
|
_basename = 'Interpreter'
|
||||||
def create_name(cls, parent):
|
def create_name(cls, parent):
|
||||||
|
@ -432,6 +435,8 @@ class InterpreterBuffer(Buffer):
|
||||||
def get_cmd(self):
|
def get_cmd(self):
|
||||||
raise Exception, 'unimplemented'
|
raise Exception, 'unimplemented'
|
||||||
def pipe_readline(self):
|
def pipe_readline(self):
|
||||||
|
if self.pipe.poll() is not None:
|
||||||
|
raise InterpreterPipeError('broken pipe')
|
||||||
line = self.pipe.stdout.readline()
|
line = self.pipe.stdout.readline()
|
||||||
m = self.readre.match(line)
|
m = self.readre.match(line)
|
||||||
if m:
|
if m:
|
||||||
|
|
Loading…
Reference in New Issue