/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to commit.py

Don't modify dictionary during iteration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009 Jelmer Vernooij <jelmer@samba.org>
 
1
# Copyright (C) 2009-2010 Jelmer Vernooij <jelmer@samba.org>
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
112
112
 
113
113
    def finish_inventory(self):
114
114
        # eliminate blobs that were removed
115
 
        for path, entry in self._blobs.iteritems():
 
115
        for path, entry in iter(self._blobs.items()):
116
116
            if entry is None:
117
117
                del self._blobs[path]
118
118