Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 49026:2cce2fa5bcf7
py3: replace pycompat.itervalues(x) with x.values()
pycompat.itervalues(x) just calls x.values(). So this is equivalent.
The rewrite was perfomed via an automated search and replace.
Differential Revision: https://phab.mercurial-scm.org/D12341
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 01 Mar 2022 20:52:32 -0800 |
parents | f254fc73d956 |
children | fd5b8e696b75 |
line wrap: on
line diff
--- a/mercurial/patch.py Mon Feb 21 11:24:57 2022 -0700 +++ b/mercurial/patch.py Tue Mar 01 20:52:32 2022 -0800 @@ -1342,11 +1342,7 @@ fixoffset += chunk.removed - chunk.added return ( sum( - [ - h - for h in pycompat.itervalues(applied) - if h[0].special() or len(h) > 1 - ], + [h for h in applied.values() if h[0].special() or len(h) > 1], [], ), {},