Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Change a deprecated warning method.

Aathish Sivasubrahmanian9686500da5fd
diff --git a/manim/__main__.py b/manim/__main__.py
index 18f49b71b..5fa555abe 100644
--- a/manim/__main__.py
+++ b/manim/__main__.py
@@ -128,7 +128,7 @@ def get_module(file_name):
logger.info("Enter the animation's code & end with an EOF (CTRL+D on Linux/Unix, CTRL+Z on Windows):")
code = sys.stdin.read()
if not code.startswith("from manim import"):
- logger.warn("Didn't find an import statement for Manim. Importing automatically...")
+ logger.warning("Didn't find an import statement for Manim. Importing automatically...")
code="from manim import *\n"+code
logger.info("Rendering animation from typed code...")
try: