Module: deluge Branch: master Commit: ba3a093746a51fd46b9b0bcaf72847549e0c94b3
Author: Nick <[email protected]> Date: Fri Jan 28 17:04:28 2011 +0100 remove special case white/black pair. doesn't seem needed and breaks white,black,attrs --- deluge/ui/console/colors.py | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/deluge/ui/console/colors.py b/deluge/ui/console/colors.py index 7d7944b..9988ab8 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 -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
