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

Skip to content

Commit d610a5d

Browse files
committed
Fix undefined name.
1 parent ebe50c1 commit d610a5d

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
@@ -1342,7 +1342,8 @@ def to_html5_video(self, embed_limit=None):
13421342
# Now open and base64 encode.
13431343
vid64 = base64.encodebytes(path.read_bytes())
13441344

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

0 commit comments

Comments
 (0)