Permalink
Browse files

Fixed python2.6 support (by removing use of viewvalues on a dict).

  • Loading branch information...
1 parent 3649d2b commit e461869de54b2190c65599c375aa5bd2ea048dff @pelson committed Sep 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/matplotlib/figure.py
@@ -1189,7 +1189,7 @@ def __getstate__(self):
if getattr(self.canvas, 'manager', None) is not None:
manager = self.canvas.manager
import matplotlib._pylab_helpers
- if manager in matplotlib._pylab_helpers.Gcf.figs.viewvalues():
+ if manager in matplotlib._pylab_helpers.Gcf.figs.values():
state['_restore_to_pylab'] = True
return state

0 comments on commit e461869

Please sign in to comment.