changeset 30387:ca74c076710e

color: avoid shadowing a variable inside a list comprehension
author Augie Fackler <augie@google.com>
date Thu, 10 Nov 2016 16:32:51 -0500
parents ff896733c66a
children 8819b63732b9
files hgext/color.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):