Example #1
0
 def read_file(self, filename=None, raise_exc=False):
     """Load a readline history file.
     The default filename is ~/.history. If ``raise_exc`` is True,
     IOErrors will be allowed to propagate.
     """
     try:
         readline.read_history_file(filename)
     except IOError:
         if raise_exc:
             raise
Example #2
0
 def read_file(self, filename=None, raise_exc=False):
     """Load a readline history file.
     The default filename is ~/.history. If ``raise_exc`` is True,
     IOErrors will be allowed to propagate.
     """
     try:
         readline.read_history_file(filename)
     except IOError:
         if raise_exc:
             raise
Example #3
0
 def test_read_history_file_None(self):
     self.mkfile(self.histfile)
     readline.read_history_file(None)
Example #4
0
 def test_read_history_file_noarg(self):
     self.mkfile(self.histfile)
     readline.read_history_file()
Example #5
0
 def test_read_history_file_None(self):
     self.mkfile(self.histfile)
     readline.read_history_file(None)
Example #6
0
 def test_read_history_file_noarg(self):
     self.mkfile(self.histfile)
     readline.read_history_file()