1
0
Fork 0

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

@ -537,7 +537,7 @@ class Remote(object):
self.url = self._Get('url')
self.review = self._Get('review')
self.projectname = self._Get('projectname')
self.fetch = map(lambda x: RefSpec.FromString(x),
self.fetch = map(RefSpec.FromString,
self._Get('fetch', all_keys=True))
self._review_url = None
@ -657,7 +657,7 @@ class Remote(object):
self._Set('url', self.url)
self._Set('review', self.review)
self._Set('projectname', self.projectname)
self._Set('fetch', map(lambda x: str(x), self.fetch))
self._Set('fetch', map(str, self.fetch))
def _Set(self, key, value):
key = 'remote.%s.%s' % (self.name, key)