Parcourir la source

Merge pull request #202 from rbrito/master

Use non-lazy enumeration for removal of dictionary keys.
pull/192/merge
William Ting il y a 11 ans
Parent
révision
3bbd8e8e50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      bin/autojump

+ 1
- 1
bin/autojump Voir le fichier

@ -173,7 +173,7 @@ class Database:
Deletes all entries that no longer exist on system.
"""
removed = []
for path in self.data.keys():
for path in list(self.data.keys()):
if not os.path.exists(path):
removed.append(path)
del self.data[path]

Chargement…
Annuler
Enregistrer