10000 Fixed python2.6 support (by removing use of viewvalues on a dict). · matplotlib/matplotlib@e461869 · GitHub
[go: up one dir, main page]

Skip to content

Commit e461869

Browse files
committed
Fixed python2.6 support (by removing use of viewvalues on a dict).
1 parent 3649d2b commit e461869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
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)
0