Skip to content

Commit e5807b6

Browse files
committed
Changed example cmd2 history file's extension from txt to dat since it is now binary
1 parent 77cf791 commit e5807b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ dmypy.json
2828
dmypy.sock
2929

3030
# cmd2 history file used in hello_cmd2.py
31-
cmd2_history.txt
31+
cmd2_history.dat

examples/hello_cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive
1313
# debugging of your application via introspection on self.
14-
app = cmd2.Cmd(use_ipython=True, persistent_history_file='cmd2_history.txt')
14+
app = cmd2.Cmd(use_ipython=True, persistent_history_file='cmd2_history.dat')
1515
app.locals_in_py = True # Enable access to "self" within the py command
1616
app.debug = True # Show traceback if/when an exception occurs
1717
sys.exit(app.cmdloop())

0 commit comments

Comments
 (0)