mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
2a49b8ca47
In the current situation, iterating over `self.data.keys()` is OK only when the dictionary is not modified, as `self.data.keys()` is lazily generated, at least in Python 3. Unfortunately, as we intend to change the dictionary with the `--purge` option, we get a runtime exception when iterating the loop. This commit fixes it by making the generation of the list of keys occur only once, so that the dictionary itself can be modified in the body of the loop. Tested with both Python 2.7 and Python 3.3. Signed-off-by: Rogério Brito <rbrito@ime.usp.br> |
||
---|---|---|
.. | ||
_j | ||
autojump | ||
autojump_argparse.py | ||
autojump.bash | ||
autojump.sh | ||
autojump.zsh | ||
icon.png |