Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c0b72f

Browse filesBrowse files
committed
Remove animation temp file *after* it's closed.
1 parent 8cc21db commit 6c0b72f
Copy full SHA for 6c0b72f

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎lib/matplotlib/animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/animation.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,9 @@ def to_html5_video(self):
920920
self._base64_video = vid64.decode('ascii')
921921
self._video_size = 'width="{0}" height="{1}"'.format(
922922
*writer.frame_size)
923-
os.remove(f.name) # Now we can remove
923+
924+
# Now we can remove
925+
os.remove(f.name)
924926

925927
# Default HTML5 options are to autoplay and to display video controls
926928
options = ['controls', 'autoplay']

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.