Save session commands in history.
(self)
| 1770 | return CmdStatus.ERROR |
| 1771 | |
| 1772 | def postloop(self): |
| 1773 | """Save session commands in history.""" |
| 1774 | if self.readline: |
| 1775 | try: |
| 1776 | self._replace_history_delimiters('\n', ImpalaShell.HISTORY_FILE_QUERY_DELIM) |
| 1777 | self.readline.write_history_file(self.history_file) |
| 1778 | except IOError as i: |
| 1779 | msg = "Unable to save command history (disabling history collection): %s" % i |
| 1780 | print(msg, file=sys.stderr) |
| 1781 | # The history file is not writable, disable readline. |
| 1782 | self._disable_readline() |
| 1783 | |
| 1784 | def parseline(self, line): |
| 1785 | """Parse the line into a command name and a string containing |
nothing calls this directly
no test coverage detected