summaryrefslogtreecommitdiff
path: root/libmat2/images.py
diff options
context:
space:
mode:
authorjvoisin2019-07-22 23:20:37 +0200
committerjvoisin2019-07-22 23:21:06 +0200
commit5280b6c2b3456a6083b5cf520796847b14225ed9 (patch)
treea0da733e7ee2ac4d16b65fd1d3e4ffa3b6da0355 /libmat2/images.py
parenta81ea65d44a31e33307ed3b6a9ce3b2c0057d550 (diff)
Add a test for svg namespace
Diffstat (limited to 'libmat2/images.py')
-rw-r--r--libmat2/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/images.py b/libmat2/images.py
index 8bef3f8..2781e05 100644
--- a/libmat2/images.py
+++ b/libmat2/images.py
@@ -37,7 +37,7 @@ class SVGParser(exiftool.ExiftoolParser):
37 def get_meta(self) -> Dict[str, Union[str, dict]]: 37 def get_meta(self) -> Dict[str, Union[str, dict]]:
38 meta = super().get_meta() 38 meta = super().get_meta()
39 39
40 # The namespace is mandatory, but thereis only one bossible. 40 # The namespace is mandatory, but only the …/2000/svg is valid.
41 ns = 'http://www.w3.org/2000/svg' 41 ns = 'http://www.w3.org/2000/svg'
42 if meta.get('Xmlns', ns) == ns: 42 if meta.get('Xmlns', ns) == ns:
43 meta.pop('Xmlns') 43 meta.pop('Xmlns')