comparison mercurial/localrepo.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 d4de90a612f7
children 1e497df514e2
comparison
equal deleted inserted replaced
13411:d4de90a612f7 13412:58c497d0e44d
1240 rfiles.extend("%s/%s" % (subpath, f) for f in sfiles) 1240 rfiles.extend("%s/%s" % (subpath, f) for f in sfiles)
1241 except error.LookupError: 1241 except error.LookupError:
1242 self.ui.status(_("skipping missing subrepository: %s\n") 1242 self.ui.status(_("skipping missing subrepository: %s\n")
1243 % subpath) 1243 % subpath)
1244 1244
1245 [l.sort() for l in r] 1245 for l in r:
1246 l.sort()
1246 return r 1247 return r
1247 1248
1248 def heads(self, start=None): 1249 def heads(self, start=None):
1249 heads = self.changelog.heads(start) 1250 heads = self.changelog.heads(start)
1250 # sort the output in rev descending order 1251 # sort the output in rev descending order