1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
wting_autojump/bin
Rogério Brito 2a49b8ca47 Use non-lazy enumeration for removal of dictionary keys.
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>
2013-04-14 12:58:26 -03:00
..
_j Revert "remove _j() as it was never used to begin with." 2013-02-13 12:14:52 -06:00
autojump Use non-lazy enumeration for removal of dictionary keys. 2013-04-14 12:58:26 -03:00
autojump_argparse.py Vendorize argparse 2012-09-26 22:04:45 +02:00
autojump.bash Updated cygwin code to start file explorer correctly 2013-04-03 13:48:23 +02:00
autojump.sh Consolidate source calls to use autojump.sh. Modify autojump.sh to support 2012-11-22 16:33:05 -06:00
autojump.zsh Updated cygwin code as for autojump.bash 2013-04-03 13:50:37 +02:00
icon.png restructure files, working make doc and make release 2012-04-17 13:09:39 -10:00