MCPcopy Create free account
hub / github.com/apache/impala / postloop

Method postloop

shell/impala_shell/impala_shell.py:1772–1782  ·  view source on GitHub ↗

Save session commands in history.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_disable_readlineMethod · 0.95

Tested by

no test coverage detected