From a2b8913d04c39247d142f14557fe9936b114c429 Mon Sep 17 00:00:00 2001 From: moculus Date: Tue, 27 May 2008 22:11:55 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- buffer.py | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/buffer.py b/buffer.py index add75b2..00c9446 100644 --- a/buffer.py +++ b/buffer.py @@ -424,16 +424,16 @@ class IperlBuffer(Buffer): return True class IperlBuffer2(Buffer): - def get_ipython_name(parent): + def get_iperl_name(parent): if hasattr(parent, 'path'): - return '*IPython:%s*' % parent.name() + return '*IPerl:%s*' % parent.name() else: - return '*IPython*' - get_ipython_name = classmethod(get_ipython_name) - btype = 'ipython' - modename = 'ipython' + return '*IPerl*' + get_iperl_name = classmethod(get_iperl_name) + btype = 'iperl' + modename = 'iperl' readre = re.compile('^([A-Z]+):(.*)\n$') - _name = '*IPython*' + _name = '*IPerl*' def __init__(self, parent): if hasattr(parent, 'path'): self.parent = parent @@ -445,14 +445,14 @@ class IperlBuffer2(Buffer): self.prompt = '***' self.clear() self.pipe_read() - self._name = get_ipython_name(parent) + self._name = get_iperl_name(parent) def name(self): return self._name def get_cmd(self): if self.parent: - return ('epython', '-p', self.parent.path) + return ('iperl', '-p', self.parent.path) else: - return ('epython',) + return ('iperl',) def pipe_readline(self): line = self.pipe.stdout.readline() m = self.readre.match(line) @@ -487,9 +487,6 @@ class IperlBuffer2(Buffer): self.set_data('', force=True) def changed(self): return False - def close(self): - global ipython - ipython = None def readonly(self): return True @@ -557,9 +554,6 @@ class IpythonBuffer(Buffer): self.set_data('', force=True) def changed(self): return False - def close(self): - global ipython - ipython = None def readonly(self): return True