Skip to content

Commit

Permalink
Replace filter and lambda with list comprehension.
Browse files Browse the repository at this point in the history
filter() returns an iterable on Python 3, not a list.
  • Loading branch information
rodrigc committed Jan 17, 2017
1 parent 85987af commit 6cf2df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/docs/manual/cfg-buildsteps.rst
Expand Up @@ -2212,7 +2212,7 @@ The `uploadDone` method is called once for each uploaded file and can be used to

def allUploadsDone(self, result, sources, masterdest):
if self.url:
notLinked = filter(lambda src: not self.linkFile(src), sources)
notLinked = [src for src in sources if not self.linkFile(src)]
numFiles = len(notLinked)
if numFiles:
self.addURL(self.url, '... %d more' % numFiles)
Expand Down

0 comments on commit 6cf2df7

Please sign in to comment.