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/classes.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'lib/classes.py') diff --git a/lib/classes.py b/lib/classes.py index 9370241..c285828 100644 --- a/lib/classes.py +++ b/lib/classes.py @@ -1,10 +1,16 @@ import redis, socket, os +RED = '\033[91m' +YELLOW = '\033[93m' +GREY = '\033[90m' +BLACK = '\033[0m' +BOLD = '\033[1m' + try: from .config import config as co except: from config import config as co - + r = redis.Redis(host=co['host'], port=co['port'], unix_socket_path=co['unix_socket_path'], db=co['db']) def clear(): @@ -23,12 +29,3 @@ class PersonalError(Exception): def __str__(self): return repr(self.value) - - -class Colors(object): - - red = '\033[91m' - yellow = '\033[93m' - grey = '\033[90m' - black = '\033[0m' - bold = '\033[1m' -- cgit v1.2.3-18-g5258