summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 8310da93..3c4c3308 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3503,9 +3503,9 @@ class Cmd(cmd.Cmd):
# if the history file is in plain text format from 0.9.12 or lower
# this will fail, and the history in the plain text file will be lost
import atexit
- atexit.register(self._persist_history_on_exit)
+ atexit.register(self._persist_history)
- def _persist_history_on_exit(self):
+ def _persist_history(self):
"""write history out to the history file"""
if not self.persistent_history_file:
return