diff hgext/transplant.py @ 48935: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 6000f5b25c9b
children 642e31cb55f0
line wrap: on
line diff
--- a/hgext/transplant.py	Mon Feb 21 11:24:57 2022 -0700
+++ b/hgext/transplant.py	Tue Mar 01 20:52:32 2022 -0800
@@ -106,7 +106,7 @@
             if not os.path.isdir(self.path):
                 os.mkdir(self.path)
             fp = self.opener(self.transplantfile, b'w')
-            for list in pycompat.itervalues(self.transplants):
+            for list in self.transplants.values():
                 for t in list:
                     l, r = map(hex, (t.lnode, t.rnode))
                     fp.write(l + b':' + r + b'\n')