Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd610a5d

Browse files
committed
Fix undefined name.
1 parentebe50c1 commitd610a5d

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-
iflen(vid64)>=embed_limit:
1345+
vid_len=len(vid64)
1346+
ifvid_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)

[8]ページ先頭

©2009-2025 Movatter.jp