summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-05-25 16:35:23 -0600
committerkotfu <kotfu@kotfu.net>2019-05-25 16:35:23 -0600
commitf82c3653088f15bb33e2624fa0a3b5e9a6e74fb7 (patch)
tree1f47ae5ed823f50f938838b970c7b1e417a33286 /cmd2/cmd2.py
parent1fe024f33574af02c93d4df0eb0ddb88e690305a (diff)
downloadcmd2-git-f82c3653088f15bb33e2624fa0a3b5e9a6e74fb7.tar.gz
Improve unit test coverage for history
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