Skip to content

Commit 0eb6c8c

Browse files
committed
Merge pull request matplotlib#1198 from pelson/pickle_fix_3
Fixed python2.6 support (by removing use of viewvalues on a dict).
2 parents 21adc0a + e461869 commit 0eb6c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/figure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ def __getstate__(self):
11891189
if getattr(self.canvas, 'manager', None) is not None:
11901190
manager = self.canvas.manager
11911191
import matplotlib._pylab_helpers
1192-
if manager in matplotlib._pylab_helpers.Gcf.figs.viewvalues():
1192+
if manager in matplotlib._pylab_helpers.Gcf.figs.values():
11931193
state['_restore_to_pylab'] = True
11941194

11951195
return state

0 commit comments

Comments
 (0)