g2p / bedup

Btrfs deduplication
http://pypi.python.org/pypi/bedup
GNU General Public License v2.0
323 stars 50 forks source link

Fix loop that modifies the dict it iterates over #82

Closed rvandegrift closed 7 years ago

rvandegrift commented 7 years ago

In python3, dict.items() returns a view that iterates over the dictionary. By creating a list from those items, the subsequent modifications of the dictionary do not raise an exception.

This fixes the issue in https://github.com/g2p/bedup/issues/78 for me.