We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbcda8f commit 813e079Copy full SHA for 813e079
1 file changed
tableaudocumentapi/containerfile.py
@@ -29,8 +29,8 @@ def find_file_in_zip(zip):
29
30
def get_xml_from_archive(filename):
31
with zipfile.ZipFile(filename) as zf:
32
- xml_file = zf.open(find_file_in_zip(zf))
33
- xml_tree = ET.parse(xml_file)
+ with zf.open(find_file_in_zip(zf)) as xml_file:
+ xml_tree = ET.parse(xml_file)
34
35
return xml_tree
36
0 commit comments