From 6780baa83457f7e99ba3a9c4f6a3c27701326ac5 Mon Sep 17 00:00:00 2001 From: kotfu Date: Wed, 23 May 2018 21:16:17 -0600 Subject: Standardize cmd2 imports in tests and examples --- examples/subcommands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/subcommands.py') diff --git a/examples/subcommands.py b/examples/subcommands.py index 55be7711..356c2e09 100755 --- a/examples/subcommands.py +++ b/examples/subcommands.py @@ -52,8 +52,7 @@ except ImportError: # Intentionally below the bash completion code to reduce tab completion lag -from cmd2 import cmd2 -from cmd2.cmd2 import with_argparser +import cmd2 class SubcommandsExample(cmd2.Cmd): @@ -83,7 +82,7 @@ class SubcommandsExample(cmd2.Cmd): parser_bar.set_defaults(func=base_bar) parser_sport.set_defaults(func=base_sport) - @with_argparser(base_parser) + @cmd2.with_argparser(base_parser) def do_base(self, args): """Base command help""" func = getattr(args, 'func', None) -- cgit v1.2.1