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 f0a93c4

Browse filesBrowse files
committed
Fix undefined name.
1 parent 3ca8139 commit f0a93c4
Copy full SHA for f0a93c4

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎lib/matplotlib/animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/animation.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,8 @@ def to_html5_video(self, embed_limit=None):
13401340
# Now open and base64 encode.
13411341
vid64 = base64.encodebytes(path.read_bytes())
13421342

1343-
if len(vid64) >= embed_limit:
1343+
vid_len = len(vid64)
1344+
if vid_len >= embed_limit:
13441345
_log.warning(
13451346
"Animation movie is %s bytes, exceeding the limit of %s. "
13461347
"If you're sure you want a large animation embedded, set "

0 commit comments

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