Skip to content

Commit 242e700

Browse files
pre-committed
1 parent f87a941 commit 242e700

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

examples/document.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from modelspec import field, instance_of, optional
33
from modelspec.base_types import Base
44
from typing import List
5-
from modelspec.utils import save_to_xml_file
65

76
# Example showing how to create a model of a document and use it to create/serialize instances
87

src/modelspec/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,9 @@ def save_to_xml_file(info_dict, filename, indent=4, root="modelspec"):
180180
indent (int, optional): The number of spaces used for indentation in the XML file.
181181
Defaults to 4.
182182
"""
183-
# root = ET.Element(root)
184183

185184
root = build_xml_element(info_dict)
186185

187-
# Create an ElementTree object with the root element
188-
# tree = ET.ElementTree(root)
189-
190186
# Generate the XML string
191187
xml_str = ET.tostring(root, encoding="utf-8", method="xml").decode("utf-8")
192188

0 commit comments

Comments
 (0)