From 3c56e99ea4166d7be39edc59ee77dd488fe933a4 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 30 Jul 2017 08:39:04 +0200 Subject: imports are on the top --- lib/classes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/classes.py') diff --git a/lib/classes.py b/lib/classes.py index c285828..c4e60e7 100644 --- a/lib/classes.py +++ b/lib/classes.py @@ -1,11 +1,5 @@ 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: @@ -13,6 +7,12 @@ except: r = redis.Redis(host=co['host'], port=co['port'], unix_socket_path=co['unix_socket_path'], db=co['db']) +RED = '\033[91m' +YELLOW = '\033[93m' +GREY = '\033[90m' +BLACK = '\033[0m' +BOLD = '\033[1m' + def clear(): """ clear the window -- cgit v1.2.3-18-g5258