Mercurial > hg
changeset 21723:35eb333d61d5
color: add parenthesis to help readability
Took me a multiple attempts until my mind eventually stop reading:
auto = coloropt = 'auto'
And properly reads:
auto = colorpopt == 'auto'
So we add parenthesis to clarify.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 30 May 2014 11:28:48 -0700 |
parents | ee29b0bb1619 |
children | 36b31f7867a7 |
files | hgext/color.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/color.py Sat May 31 17:26:15 2014 -0700 +++ b/hgext/color.py Fri May 30 11:28:48 2014 -0700 @@ -168,7 +168,7 @@ def _modesetup(ui, coloropt): global _terminfo_params - auto = coloropt == 'auto' + auto = (coloropt == 'auto') always = not auto and util.parsebool(coloropt) if not always and not auto: return None