Skip to content

Commit 8754deb

Browse files
committed
BUG: Always str
1 parent f0fc42f commit 8754deb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/animation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,8 +1106,7 @@ def func(current_frame: int, total_frames: int) -> Any
11061106
"save animations.")
11071107
_log.warning("MovieWriter %s unavailable; trying to use %s "
11081108
"instead.", writer, alt_writer)
1109-
if isinstance(alt_writer, str):
1110-
alt_writer = writers[alt_writer]
1109+
alt_writer = writers[alt_writer]
11111110
writer = alt_writer(
11121111
fps, codec, bitrate,
11131112
extra_args=extra_args, metadata=metadata)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy