[pyrepl-checkins] r53454 - pyrepl/trunk/pyrepl/pyrepl
arigo at codespeak.net
arigo at codespeak.net
Sun Apr 6 16:31:54 CEST 2008
Author: arigo
Date: Sun Apr 6 16:31:53 2008
New Revision: 53454
Modified:
pyrepl/trunk/pyrepl/pyrepl/commands.py
pyrepl/trunk/pyrepl/pyrepl/reader.py
Log:
Simplification.
Modified: pyrepl/trunk/pyrepl/pyrepl/commands.py
==============================================================================
--- pyrepl/trunk/pyrepl/pyrepl/commands.py (original)
+++ pyrepl/trunk/pyrepl/pyrepl/commands.py Sun Apr 6 16:31:53 2008
@@ -333,7 +333,7 @@
b = r.buffer
if ( r.pos == 0 and len(b) == 0 # this is something of a hack
and self.event[-1] == "\004"):
- r.immediately_clear_message()
+ r.update_screen()
r.console.finish()
raise EOFError
for i in range(r.get_arg()):
Modified: pyrepl/trunk/pyrepl/pyrepl/reader.py
==============================================================================
--- pyrepl/trunk/pyrepl/pyrepl/reader.py (original)
+++ pyrepl/trunk/pyrepl/pyrepl/reader.py Sun Apr 6 16:31:53 2008
@@ -466,10 +466,7 @@
self.dirty = 1
self.console.beep()
- def immediately_clear_message(self):
- if self.msg:
- self.msg = ''
- self.dirty = 1
+ def update_screen(self):
if self.dirty:
self.refresh()
More information about the pyrepl-checkins
mailing list