Mercurial > hg
comparison hgext/color.py @ 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 | e193870eb680 |
children | 1c5cbf28f007 |
comparison
equal
deleted
inserted
replaced
30386:ff896733c66a | 30387:ca74c076710e |
---|---|
500 effects.append(s) | 500 effects.append(s) |
501 elif valideffect(l): | 501 elif valideffect(l): |
502 effects.append(l) | 502 effects.append(l) |
503 effects = ' '.join(effects) | 503 effects = ' '.join(effects) |
504 if effects: | 504 if effects: |
505 return '\n'.join([render_effects(s, effects) | 505 return '\n'.join([render_effects(line, effects) |
506 for s in msg.split('\n')]) | 506 for line in msg.split('\n')]) |
507 return msg | 507 return msg |
508 | 508 |
509 def uisetup(ui): | 509 def uisetup(ui): |
510 if ui.plain(): | 510 if ui.plain(): |
511 return | 511 return |