mirror of
https://github.com/wassname/pyreadline.git
synced 2026-06-27 16:10:38 +08:00
removed unused code, and did some other cosmetic changes to the code
This commit is contained in:
@@ -113,10 +113,8 @@ class BaseMode(object):
|
||||
print 'startup hook failed'
|
||||
traceback.print_exc()
|
||||
|
||||
c = self.console
|
||||
self.l_buffer.reset_line()
|
||||
self.prompt = prompt
|
||||
# self._print_prompt()
|
||||
|
||||
if self.pre_input_hook:
|
||||
try:
|
||||
|
||||
@@ -202,7 +202,7 @@ class EmacsMode(DigitArgumentMode, IncrementalSearchPromptMode, SearchPromptMode
|
||||
def __repr__(self):
|
||||
return "<EmacsMode>"
|
||||
|
||||
def add_key_logger(self,logfun):
|
||||
def add_key_logger(self, logfun):
|
||||
"""logfun should be function that takes disp_fun and line_buffer object """
|
||||
self._keylog=logfun
|
||||
|
||||
|
||||
Reference in New Issue
Block a user