diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-12-19 13:51:37 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-12-19 13:51:37 +0100 |
commit | 6ed0e297b305f0b6cfaebc24e4a0de4cf39d9d17 (patch) | |
tree | 854ec046379bfbf7d89f8392864bcb3f0fea2e27 /src | |
parent | 7cae4cb37b9d9d2e75743c1ca5d26de3484f8b9c (diff) | |
download | pyexiv2-6ed0e297b305f0b6cfaebc24e4a0de4cf39d9d17.tar.gz |
Fixed ExifTag.__str__ for multiple values.
Diffstat (limited to 'src')
-rw-r--r-- | src/pyexiv2/exif.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pyexiv2/exif.py b/src/pyexiv2/exif.py index 85a288e..5727ac5 100644 --- a/src/pyexiv2/exif.py +++ b/src/pyexiv2/exif.py @@ -368,7 +368,10 @@ class ExifTag(ListenerInterface): @rtype: C{str} """ - return self._convert_to_string(self._value) + if isinstance(self._value, (list, tuple)): + return ', '.join(map(self._convert_to_string, self._value)) + else: + return self._convert_to_string(self._value) def __repr__(self): """ |