--- a/mercurial/subrepo.py Thu Jun 16 15:15:03 2022 +0200
+++ b/mercurial/subrepo.py Thu Jun 16 15:28:54 2022 +0200
@@ -5,7 +5,6 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
-from __future__ import absolute_import
import copy
import errno
@@ -221,7 +220,7 @@
# subrepo classes need to implement the following abstract class:
-class abstractsubrepo(object):
+class abstractsubrepo:
def __init__(self, ctx, path):
"""Initialize abstractsubrepo part
@@ -1771,7 +1770,7 @@
for b in rev2branch[self._state[1]]:
if b.startswith(b'refs/remotes/origin/'):
return True
- for b, revision in pycompat.iteritems(branch2rev):
+ for b, revision in branch2rev.items():
if b.startswith(b'refs/remotes/origin/'):
if self._gitisancestor(self._state[1], revision):
return True