summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmat2/office.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index 4348d9b..91bf2a6 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -19,7 +19,7 @@ def _parse_xml(full_path: str):
19 19
20 namespace_map = dict() 20 namespace_map = dict()
21 for _, (key, value) in ET.iterparse(full_path, ("start-ns", )): 21 for _, (key, value) in ET.iterparse(full_path, ("start-ns", )):
22 # The ns[0-9]+ namespaces are reserved for interal usage, so 22 # The ns[0-9]+ namespaces are reserved for internal usage, so
23 # we have to use an other nomenclature. 23 # we have to use an other nomenclature.
24 if re.match('^ns[0-9]+$', key, re.I): # pragma: no cover 24 if re.match('^ns[0-9]+$', key, re.I): # pragma: no cover
25 key = 'mat' + key[2:] 25 key = 'mat' + key[2:]