Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix bug updating WeakKeyDictionary during iteration #1697

Closed
wants to merge 1 commit into from

2 participants

@mdboom
Owner

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

@mdboom mdboom Fix itervalues -> values. As reported by Massimiliano Costacurta in m…
…ailing list thread "BUG: RuntimeError: dictionary changed size during iteration"
09ca7c2
@WeatherGod
Collaborator

Shouldn't this be applied to v1.2.x branch?

@mdboom
Owner

Thanks for catching that. Yes. Closing in favor of #1698.

@mdboom mdboom closed this
@mdboom mdboom deleted the mdboom:iteritems_bug branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 23, 2013
  1. @mdboom

    Fix itervalues -> values. As reported by Massimiliano Costacurta in m…

    mdboom authored
    …ailing list thread "BUG: RuntimeError: dictionary changed size during iteration"
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/matplotlib/transforms.py
View
2  lib/matplotlib/transforms.py
@@ -150,7 +150,7 @@ def _invalidate_internal(self, value, invalidating_node):
if self.pass_through or status_changed:
self._invalid = value
- for parent in self._parents.itervalues():
+ for parent in self._parents.values():
parent._invalidate_internal(value=value,
invalidating_node=self)
Something went wrong with that request. Please try again.