matplotlib/matplotlib — pull request #1697 by mdboom (2013-01-23 19:19:55+00:00)
Title: Fix bug updating WeakKeyDictionary during iteration

This is an attempt to fix the bug reported in the mailing list thread "BUG: RuntimeError: dictionary changed size during iteration".