color: avoid shadowing a variable inside a list comprehension
authorAugie Fackler <augie@google.com>
Thu, 10 Nov 2016 16:32:51 -0500
changeset 30387 ca74c076710e
parent 30386 ff896733c66a
child 30388 8819b63732b9
color: avoid shadowing a variable inside a list comprehension
hgext/color.py
--- a/hgext/color.py	Thu Nov 10 16:32:38 2016 -0500
+++ b/hgext/color.py	Thu Nov 10 16:32:51 2016 -0500
@@ -502,8 +502,8 @@
                 effects.append(l)
         effects = ' '.join(effects)
         if effects:
-            return '\n'.join([render_effects(s, effects)
-                              for s in msg.split('\n')])
+            return '\n'.join([render_effects(line, effects)
+                              for line in msg.split('\n')])
         return msg
 
 def uisetup(ui):