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.
--- 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