From 4a575afdde6fb2c6ac1339778c6338420be5fd68 Mon Sep 17 00:00:00 2001 From: YishiMichael Date: Wed, 7 Sep 2022 13:23:02 +0800 Subject: [PATCH] chore: Remove unused namespace constants --- manimlib/mobject/svg/svg_mobject.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manimlib/mobject/svg/svg_mobject.py b/manimlib/mobject/svg/svg_mobject.py index 7f3925da..bccb1705 100644 --- a/manimlib/mobject/svg/svg_mobject.py +++ b/manimlib/mobject/svg/svg_mobject.py @@ -22,8 +22,6 @@ from manimlib.utils.simple_functions import hash_string SVG_HASH_TO_MOB_MAP: dict[int, VMobject] = {} -SVG_XMLNS = "{http://www.w3.org/2000/svg}" -SVG_XLINK = "{http://www.w3.org/1999/xlink}" def _convert_point_to_3d(x: float, y: float) -> np.ndarray: @@ -125,6 +123,7 @@ class SVGMobject(VMobject): } # Ignore other attributes in case that svgelements cannot parse them + SVG_XMLNS = "{http://www.w3.org/2000/svg}" new_root = ET.Element("svg") config_style_node = ET.SubElement(new_root, f"{SVG_XMLNS}g", config_style_attrs) root_style_node = ET.SubElement(config_style_node, f"{SVG_XMLNS}g", style_attrs)