# HG changeset patch # User Pierre-Yves David # Date 1479491019 -3600 # Node ID 520af4cc34de75b4d07fff474eaa67543002db21 # Parent f01df5d2fe493376a67569756a9bc2ddffa5cd81 color: spread '_effect' values for readability We move to our "usual" one value per line style. diff -r f01df5d2fe49 -r 520af4cc34de hgext/color.py --- a/hgext/color.py Wed Feb 15 11:22:01 2017 -0500 +++ b/hgext/color.py Fri Nov 18 18:43:39 2016 +0100 @@ -187,13 +187,28 @@ testedwith = 'ships-with-hg-core' # start and stop parameters for effects -_effects = {'none': 0, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33, - 'blue': 34, 'magenta': 35, 'cyan': 36, 'white': 37, 'bold': 1, - 'italic': 3, 'underline': 4, 'inverse': 7, 'dim': 2, - 'black_background': 40, 'red_background': 41, - 'green_background': 42, 'yellow_background': 43, - 'blue_background': 44, 'purple_background': 45, - 'cyan_background': 46, 'white_background': 47} +_effects = {'none': 0, + 'black': 30, + 'red': 31, + 'green': 32, + 'yellow': 33, + 'blue': 34, + 'magenta': 35, + 'cyan': 36, + 'white': 37, + 'bold': 1, + 'italic': 3, + 'underline': 4, + 'inverse': 7, + 'dim': 2, + 'black_background': 40, + 'red_background': 41, + 'green_background': 42, + 'yellow_background': 43, + 'blue_background': 44, + 'purple_background': 45, + 'cyan_background': 46, + 'white_background': 47} def _terminfosetup(ui, mode): '''Initialize terminfo data and the terminal if we're in terminfo mode.'''