We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc51d3 commit 07d1f1aCopy full SHA for 07d1f1a
1 file changed
Mergin/qgis_properties_version_4.py
@@ -1,9 +1,10 @@
1
-import xml.etree.ElementTree as ET
+import defusedxml.ElementTree as ET
2
+from xml.etree.ElementTree import Element
3
from typing import Dict
4
import zipfile
5
6
-def read_xml_tree_from_qgz(qgz_path: str) -> ET.Element:
7
+def read_xml_tree_from_qgz(qgz_path: str) -> Element:
8
qgs_filename = next(
9
(name for name in zipfile.ZipFile(qgz_path).namelist() if name.endswith(".qgs")),
10
None,
0 commit comments