From 6da1836f02909736b74eead153fa599e41f4e6ec Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 2 Jan 2021 22:26:49 -0800 Subject: [PATCH] Take scene finding messages out of constants --- manimlib/constants.py | 13 ------------- manimlib/extract_scene.py | 5 +---- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/manimlib/constants.py b/manimlib/constants.py index 1775ff45..1c6f33c2 100644 --- a/manimlib/constants.py +++ b/manimlib/constants.py @@ -70,19 +70,6 @@ OBLIQUE = 'OBLIQUE' BOLD = 'BOLD' -SCENE_NOT_FOUND_MESSAGE = """ - {} is not in the script -""" -CHOOSE_NUMBER_MESSAGE = """ -Choose number corresponding to desired scene/arguments. -(Use comma separated list for multiple entries) -Choice(s): """ -INVALID_NUMBER_MESSAGE = "Fine then, if you don't want to give a valid number I'll just quit" - -NO_SCENE_MESSAGE = """ - There are no scenes inside that module -""" - LOW_QUALITY_CAMERA_CONFIG = { "pixel_height": 480, "pixel_width": 854, diff --git a/manimlib/extract_scene.py b/manimlib/extract_scene.py index 5dc66176..d0d27802 100644 --- a/manimlib/extract_scene.py +++ b/manimlib/extract_scene.py @@ -4,7 +4,6 @@ import logging from manimlib.scene.scene import Scene from manimlib.config import get_custom_defaults -import manimlib.constants class BlankScene(Scene): @@ -79,9 +78,7 @@ def get_scenes_to_render(scene_classes, scene_config, config): if not found and (scene_name != ""): logging.log( logging.ERROR, - manimlib.constants.SCENE_NOT_FOUND_MESSAGE.format( - scene_name - ), + f"No scene named {scene_name} found", file=sys.stderr ) if result: