From e34bba44ef53228aeba613ac6e928b2c315111cf Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 26 Jun 2019 02:33:18 -0400 Subject: Moved code related to ANSI escape codes to new file called ansi.py --- examples/pirate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/pirate.py') diff --git a/examples/pirate.py b/examples/pirate.py index 41d7d3f4..0d9d89bc 100755 --- a/examples/pirate.py +++ b/examples/pirate.py @@ -9,7 +9,6 @@ It demonstrates many features of cmd2. import argparse import cmd2 -from cmd2 import utils from cmd2.constants import MULTILINE_TERMINATOR @@ -70,7 +69,7 @@ class Pirate(cmd2.Cmd): def do_sing(self, arg): """Sing a colorful song.""" - self.poutput(utils.style(arg, fg=self.songcolor)) + self.poutput(cmd2.ansi.style(arg, fg=self.songcolor)) yo_parser = argparse.ArgumentParser() yo_parser.add_argument('--ho', type=int, default=2, help="How often to chant 'ho'") -- cgit v1.2.1