From 9711df9de54730b4d4027cb0c8c8c435d4c98218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 16 Jun 2005 17:57:49 +0000 Subject: [PATCH] =?UTF-8?q?Renklendirme=20i=C3=A7in=20kendi=20y=C3=B6ntemi?= =?UTF-8?q?mizi=20de=20yapabilirz=20biz,=20de=C4=9Fil=20mi=3F=20;)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pisi/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()