From efda27de3207e3471e2620d72487cdfcea8dd55e Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 29 Jul 2017 20:27:47 +0200 Subject: deleted COLORS class for COLORS constants --- lib/listcommands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/listcommands.py') diff --git a/lib/listcommands.py b/lib/listcommands.py index d2f83a0..c779524 100644 --- a/lib/listcommands.py +++ b/lib/listcommands.py @@ -1,5 +1,5 @@ import sys -from classes import Colors +from classes import RED, BLACK class ListCommands(object): """ @@ -29,10 +29,10 @@ Se utilizzato con il "flag" i, si possono visualizzare le info: get i host, get @staticmethod def err(err, info = ''): if err == 'keyword': - sys.stderr.write(Colors.red + 'keyword inesistente\n' + Colors.black) + sys.stderr.write(RED + 'keyword inesistente\n' + BLACK) elif err == 'wrong': - sys.stderr.write(Colors.red + 'sintassi comando errata\n' + Colors.black) + sys.stderr.write(RED + 'sintassi comando errata\n' + BLACK) elif err == 'personal': - sys.stderr.write(Colors.red + str(info) + '\n' + Colors.black) + sys.stderr.write(RED + str(info) + '\n' + BLACK) else: pass -- cgit v1.2.3-18-g5258