Skip to content

Commit

Permalink
chore: Remove unused namespace constants
Browse files Browse the repository at this point in the history
  • Loading branch information
YishiMichael committed Sep 7, 2022
1 parent ae115d9 commit 4a575af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions manimlib/mobject/svg/svg_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@


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:
Expand Down Expand Up @@ -125,6 +123,7 @@ def modify_xml_tree(self, element_tree: ET.ElementTree) -> ET.ElementTree:
}

# 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)
Expand Down

0 comments on commit 4a575af

Please sign in to comment.