mirror of
https://github.com/wassname/pyreadline.git
synced 2026-06-27 16:10:38 +08:00
fix indentation errors
This commit is contained in:
@@ -53,10 +53,10 @@ class LineHistory(object):
|
||||
history_length=property(get_history_length,set_history_length)
|
||||
history_cursor=property(get_history_cursor,set_history_cursor)
|
||||
|
||||
def clear_history(self):
|
||||
'''Clear readline history.'''
|
||||
self.history[:] = []
|
||||
self.history_cursor = 0
|
||||
def clear_history(self):
|
||||
'''Clear readline history.'''
|
||||
self.history[:] = []
|
||||
self.history_cursor = 0
|
||||
|
||||
def read_history_file(self, filename=None):
|
||||
'''Load a readline history file.'''
|
||||
|
||||
@@ -22,7 +22,7 @@ name = 'pyreadline'
|
||||
|
||||
branch = 'refactor'
|
||||
|
||||
version = '1.4.1'
|
||||
version = '1.4.2'
|
||||
|
||||
revision = '$Revision$'
|
||||
|
||||
|
||||
@@ -170,9 +170,9 @@ class Readline(object):
|
||||
'''
|
||||
self._history.set_history_length(length)
|
||||
|
||||
def clear_history(self):
|
||||
'''Clear readline history'''
|
||||
self._history.clear_history()
|
||||
def clear_history(self):
|
||||
'''Clear readline history'''
|
||||
self._history.clear_history()
|
||||
|
||||
def read_history_file(self, filename=None):
|
||||
'''Load a readline history file. The default filename is ~/.history.'''
|
||||
|
||||
Reference in New Issue
Block a user