summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-11-29 16:11:34 -0700
committerkotfu <kotfu@kotfu.net>2019-11-29 16:11:34 -0700
commit51851b8aa0d685b039a066a3b8efe88aa05b6113 (patch)
tree7e59a0f716456deeb672ba90e0a239f1e906209b /examples
parent6102c0aa1b463b4653bf9d0e84fd0a6558fba5f1 (diff)
parentee735ed2a5a9e8d6d6fa6827a698c9d5630f0029 (diff)
downloadcmd2-git-51851b8aa0d685b039a066a3b8efe88aa05b6113.tar.gz
Merge branch 'master' into generating_output_docs
Diffstat (limited to 'examples')
-rw-r--r--examples/custom_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_parser.py b/examples/custom_parser.py
index efeb362e..7c154176 100644
--- a/examples/custom_parser.py
+++ b/examples/custom_parser.py
@@ -5,7 +5,7 @@ Defines the CustomParser used with override_parser.py example
import sys
from cmd2 import Cmd2ArgumentParser, set_default_argument_parser
-from cmd2.ansi import style_warning
+from cmd2 import ansi
# First define the parser
@@ -27,7 +27,7 @@ class CustomParser(Cmd2ArgumentParser):
linum += 1
self.print_usage(sys.stderr)
- formatted_message = style_warning(formatted_message)
+ formatted_message = ansi.style_warning(formatted_message)
self.exit(2, '{}\n\n'.format(formatted_message))