From ba3a093746a51fd46b9b0bcaf72847549e0c94b3 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 28 Jan 2011 17:04:28 +0100 Subject: [PATCH] remove special case white/black pair. doesn't seem needed and breaks white,black,attrs --- deluge/ui/console/colors.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/deluge/ui/console/colors.py b/deluge/ui/console/colors.py index 7d7944b3c..9988ab882 100644 --- a/deluge/ui/console/colors.py +++ b/deluge/ui/console/colors.py @@ -50,9 +50,7 @@ colors = [ ] # {(fg, bg): pair_number, ...} -color_pairs = { - ("white", "black"): 0 # Special case, can't be changed -} +color_pairs = {} # Some default color schemes schemes = { @@ -93,8 +91,6 @@ def init_colors(): counter = 1 for fg in colors: for bg in colors: - if fg == "COLOR_WHITE" and bg == "COLOR_BLACK": - continue color_pairs[(fg[6:].lower(), bg[6:].lower())] = counter curses.init_pair(counter, getattr(curses, fg), getattr(curses, bg)) counter += 1