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 bb99770 commit a367714Copy full SHA for a367714
lib/matplotlib/animation.py
@@ -468,15 +468,13 @@ def grab_frame(self, **savefig_kwargs):
468
def finish(self):
469
# Call run here now that all frame grabbing is done. All temp files
470
# are available to be assembled.
471
- self._run()
472
- super().finish() # Will call clean-up
473
-
474
- def _cleanup(self): # Inline to finish() once cleanup() is removed.
475
- super()._cleanup()
476
- if self._tmpdir:
477
- _log.debug('MovieWriter: clearing temporary path=%s', self._tmpdir)
478
- self._tmpdir.cleanup()
479
+ try:
+ self._run()
+ super().finish()
+ finally:
+ if self._tmpdir:
+ _log.debug('MovieWriter: clearing temporary path=%s', self._tmpdir)
+ self._tmpdir.cleanup()
480
481
@writers.register('pillow')
482
class PillowWriter(AbstractMovieWriter):
0 commit comments