diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-11-25 09:51:37 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-11-25 09:51:37 +0100 |
commit | 1605f1f7d9ebe60313a3f4e33ce4133a6b72f2be (patch) | |
tree | 5be464d5f32e5116a1470544b50cf736ff9c9fec | |
parent | 6f61f4333a35b2c736d36e33c5e9ee721cf0e9aa (diff) | |
download | pyexiv2-1605f1f7d9ebe60313a3f4e33ce4133a6b72f2be.tar.gz |
Case insensitive matching of the type.
-rw-r--r-- | src/pyexiv2/xmp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pyexiv2/xmp.py b/src/pyexiv2/xmp.py index 02f3e43..dc493d7 100644 --- a/src/pyexiv2/xmp.py +++ b/src/pyexiv2/xmp.py @@ -118,12 +118,12 @@ class XmpTag(object): self._raw_value = value if self.type.startswith(('seq', 'bag', 'alt')): type = self.type[4:] - if type.startswith('closed Choice of'): + if type.lower().startswith('closed choice of'): type = type[17:] self._value = map(lambda x: self._convert_to_python(x, type), value) elif self.type == 'Lang Alt': self._value = value - elif self.type.startswith('closed Choice of'): + elif self.type.lower().startswith('closed choice of'): self._value = self._convert_to_python(value, self.type[17:]) else: self._value = self._convert_to_python(value, self.type) |