Fix pylint warning W0108: Lambda may not be necessary

Remove unnecessary usage of lambda.

Change-Id: I06d41933057d60d15d307ee800cca052a44754c6
This commit is contained in:
David Pursehouse
2012-10-25 12:40:51 +09:00
parent e072a92a9b
commit 7e6dd2dff0
4 changed files with 8 additions and 9 deletions

View File

@@ -1175,7 +1175,7 @@ class Project(object):
cmd = ['fetch', remote.name]
cmd.append('refs/changes/%2.2d/%d/%d' \
% (change_id % 100, change_id, patch_id))
cmd.extend(map(lambda x: str(x), remote.fetch))
cmd.extend(map(str, remote.fetch))
if GitCommand(self, cmd, bare=True).Wait() != 0:
return None
return DownloadedChange(self,