diff options
| author | Romain Vigier | 2020-11-12 22:46:14 +0100 |
|---|---|---|
| committer | Romain Vigier | 2020-11-12 22:46:14 +0100 |
| commit | 1b361ec27e2df1a0585c2db0851fb8bd6d6904b6 (patch) | |
| tree | 61824ac3700785dd3fb4b3969ae501fcafb0f076 /libmat2/images.py | |
| parent | 58a1563a9935115ac7444d57433aa892887d1b0f (diff) | |
Don't set a default value when retrieving Xmlns key for SVG metadata
Diffstat (limited to 'libmat2/images.py')
| -rw-r--r-- | libmat2/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/images.py b/libmat2/images.py index 2098569..86e6b17 100644 --- a/libmat2/images.py +++ b/libmat2/images.py | |||
| @@ -41,7 +41,7 @@ class SVGParser(exiftool.ExiftoolParser): | |||
| 41 | 41 | ||
| 42 | # The namespace is mandatory, but only the …/2000/svg is valid. | 42 | # The namespace is mandatory, but only the …/2000/svg is valid. |
| 43 | ns = 'http://www.w3.org/2000/svg' | 43 | ns = 'http://www.w3.org/2000/svg' |
| 44 | if meta.get('Xmlns', ns) == ns: | 44 | if meta.get('Xmlns') == ns: |
| 45 | meta.pop('Xmlns') | 45 | meta.pop('Xmlns') |
| 46 | return meta | 46 | return meta |
| 47 | 47 | ||
