# HG changeset patch # User Manuel Jacob <me@manueljacob.de> # Date 1588918072 -7200 # Fri May 08 08:07:52 2020 +0200 # Node ID 73a0a3c4a1aff11b46cba4a947a0449a4e8dd0af # Parent e4d28642c012ac8936ece8cfb3f14ab9d6c0ef53 py3: stop iterating over mutating dict keys diff --git a/hggit/hg2git.py b/hggit/hg2git.py --- a/hggit/hg2git.py +++ b/hggit/hg2git.py @@ -328,7 +328,7 @@ self._dirs.setdefault(b'', dulobjs.Tree()) # Fill in missing directories. - for path in self._dirs.keys(): + for path in list(self._dirs): parent = os.path.dirname(path) while parent != b'':