diff --git a/src/pisi/ui.py b/src/pisi/ui.py index 7736644f..1e5170eb 100644 --- a/src/pisi/ui.py +++ b/src/pisi/ui.py @@ -1,7 +1,7 @@ # generic user interface import sys -from output import * +from colors import colorize # put the interface directly in the module # since the UI is _unique_ @@ -19,11 +19,11 @@ def error(msg): # default UI implementation class CLI: def info(self, msg): - sys.stdout.write(blue(msg)) + sys.stdout.write(colorize(msg, 'blue')) sys.stdout.flush() def error(self,msg): - sys.stdout.write(bold(red(msg))) + sys.stdout.write(colorize(msg, 'red')) sys.stdout.flush() # default UI is CLI impl = CLI()