Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0a93c4

Browse files
committed
Fix undefined name.
1 parent 3ca8139 commit f0a93c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/animation.py

Lines 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)