mercurial/strip.py
branchstable
changeset 49366 288de6f5d724
parent 48913 f254fc73d956
child 50112 62158471d038
--- a/mercurial/strip.py	Thu Jun 16 15:15:03 2022 +0200
+++ b/mercurial/strip.py	Thu Jun 16 15:28:54 2022 +0200
@@ -1,5 +1,3 @@
-from __future__ import absolute_import
-
 from .i18n import _
 from .pycompat import getattr
 from . import (
@@ -195,7 +193,7 @@
             # a revision we have to only delete the bookmark and not strip
             # anything. revsets cannot detect that case.
             nodetobookmarks = {}
-            for mark, node in pycompat.iteritems(repomarks):
+            for mark, node in repomarks.items():
                 nodetobookmarks.setdefault(node, []).append(mark)
             for marks in nodetobookmarks.values():
                 if bookmarks.issuperset(marks):