From a872e5e67cb0b1b2de19dab7cbf50d00eca93d44 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 15 Dec 2024 12:04:36 -0500 Subject: [PATCH] Fix broken python_scripting.py example --- examples/python_scripting.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/python_scripting.py b/examples/python_scripting.py index e2403c0c..688ef52c 100755 --- a/examples/python_scripting.py +++ b/examples/python_scripting.py @@ -24,9 +24,7 @@ import os import cmd2 -from cmd2 import ( - ansi, -) +from cmd2 import ansi class CmdLineApp(cmd2.Cmd): @@ -41,7 +39,7 @@ def __init__(self): def _set_prompt(self): """Set prompt so it displays the current working directory.""" self.cwd = os.getcwd() - self.prompt = ansi.style(f'{self.cwd} $ ', fg='cyan') + self.prompt = ansi.style(f'{self.cwd} $ ', fg=ansi.Fg.CYAN) def postcmd(self, stop: bool, line: str) -> bool: """Hook method executed just after a command dispatch is finished.