# HG changeset patch # User Pierre-Yves David # Date 1401474528 25200 # Node ID 35eb333d61d55459762136e92ddb640a04ffc990 # Parent ee29b0bb16196905e0d3f0f7ac8e40d532bead48 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. diff -r ee29b0bb1619 -r 35eb333d61d5 hgext/color.py --- 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