Skip to content

Commit 8b7c3b4

Browse files
authored
Merge pull request matplotlib#24824 from oscargus/animationcleanup
Fix incorrect method in doc
2 parents e9d1f9c + 212848a commit 8b7c3b4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/matplotlib/animation.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def setup(self, fig, outfile, dpi=None, frame_prefix=None):
402402
frame_prefix : str, optional
403403
The filename prefix to use for temporary files. If *None* (the
404404
default), files are written to a temporary directory which is
405-
deleted by `cleanup`; if not *None*, no temporary files are
405+
deleted by `finish`; if not *None*, no temporary files are
406406
deleted.
407407
"""
408408
self.fig = fig
@@ -804,12 +804,11 @@ def finish(self):
804804
interval=interval,
805805
**mode_dict))
806806

807-
# duplicate the temporary file clean up logic from
808-
# FileMovieWriter.cleanup. We can not call the inherited
809-
# versions of finish or cleanup because both assume that
810-
# there is a subprocess that we either need to call to merge
811-
# many frames together or that there is a subprocess call that
812-
# we need to clean up.
807+
# Duplicate the temporary file clean up logic from
808+
# FileMovieWriter.finish. We can not call the inherited version of
809+
# finish because it assumes that there is a subprocess that we either
810+
# need to call to merge many frames together or that there is a
811+
# subprocess call that we need to clean up.
813812
if self._tmpdir:
814813
_log.debug('MovieWriter: clearing temporary path=%s', self._tmpdir)
815814
self._tmpdir.cleanup()

0 commit comments

Comments
 (0)