Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 22201:269688a398c4
cleanup: fix some list comprehension redefinitions of existing vars
In all the remaining cases the comprehension variable is used for the same
thing as a previous loop variable.
This will mute some pyflakes "list comprehension redefines" warnings.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 15 Aug 2014 04:37:46 +0200 |
parents | d1823cdf8554 |
children | 8dda6f6ff564 |
line wrap: on
line diff
--- a/mercurial/context.py Fri Aug 15 16:20:47 2014 +0200 +++ b/mercurial/context.py Fri Aug 15 04:37:46 2014 +0200 @@ -735,9 +735,9 @@ return True def parents(self): - p = self._path + _path = self._path fl = self._filelog - pl = [(p, n, fl) for n in self._filelog.parents(self._filenode)] + pl = [(_path, n, fl) for n in self._filelog.parents(self._filenode)] r = self._filelog.renamed(self._filenode) if r: