From 07e37b2d081161af32feb64890b1fd4236bf5f13 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Mon, 15 Jan 2018 00:27:06 -0500 Subject: Fixed do_history unit tests and implementation --- cmd2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2.py') diff --git a/cmd2.py b/cmd2.py index c8682dc5..91e90def 100755 --- a/cmd2.py +++ b/cmd2.py @@ -1679,7 +1679,7 @@ arg is /regex/ matching regular expression regex""" @with_argument_parser(argparser) def do_history(self, arglist, args): # If an argument was supplied, then retrieve partial contents of the history - if arglist: + if args.arg: # If a character indicating a slice is present, retrieve a slice of the history arg = args.arg[0] if '..' in arg or ':' in arg: -- cgit v1.2.1