Mercurial > public > mercurial-scm > hg
diff mercurial/ignore.py @ 13412:58c497d0e44d
remove unnecessary list comprehensions
These result lists were only built for the side effects, and so a
normal loop is just as good and more straight-forward.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Thu, 03 Feb 2011 10:31:17 +0100 |
parents | 25e572394f5c |
children | ee112eb69d2a |
line wrap: on
line diff
--- a/mercurial/ignore.py Tue Feb 15 22:25:48 2011 +0100 +++ b/mercurial/ignore.py Thu Feb 03 10:31:17 2011 +0100 @@ -86,7 +86,8 @@ (f, inst.strerror)) allpats = [] - [allpats.extend(patlist) for patlist in pats.values()] + for patlist in pats.values(): + allpats.extend(patlist) if not allpats: return util.never