Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea367e2 commit 96d37e3Copy full SHA for 96d37e3
lib/matplotlib/_pylab_helpers.py
@@ -84,7 +84,9 @@ def destroy_fig(cls, fig):
84
85
@classmethod
86
def destroy_all(cls):
87
- import gc
+ # this is need to ensure that gc is available in corner cases
88
+ # where modules are being torn down after install with easy_install
89
+ import gc # nnqa
90
for manager in list(cls.figs.values()):
91
manager.canvas.mpl_disconnect(manager._cidgcf)
92
manager.destroy()
0 commit comments