summaryrefslogtreecommitdiff
path: root/src/leap/common/files.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-05-27 18:51:44 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-05-28 11:44:06 -0300
commit7826a96e526a450380917f9b89e3714576ca50b7 (patch)
treeee0ea8b95545bd0701dac0fbc252c2930b61b007 /src/leap/common/files.py
parentaacf74601f35511b91a9ac111729c9c2cbf99674 (diff)
[bug] use dict keys to iterate
We ran into a RuntimeError yesterday on this line, the callback can modify this dict and make the iteration raise an error. Using keys method to iterate is safer. See http://stackoverflow.com/questions/11941817/python-runtimeerror-dictionary-changed-size-during-iteration-how-to-avoid-th/11941855#11941855
Diffstat (limited to 'src/leap/common/files.py')
0 files changed, 0 insertions, 0 deletions