aboutsummaryrefslogtreecommitdiffstats
path: root/src/pyexiv2.py
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-01-27 09:34:19 +0100
committerOlivier Tilloy <olivier@tilloy.net>2009-01-27 09:34:19 +0100
commit4eb5914ee396b6eb0c3f4ede4dfaa1e6107c0851 (patch)
tree61d930da4e6e327c8b5c2fc7c6a20ae80944229a /src/pyexiv2.py
parent55697d8319dc62729ef53651f2fef408f06e2d50 (diff)
downloadpyexiv2-4eb5914ee396b6eb0c3f4ede4dfaa1e6107c0851.tar.gz
XMP ProperName conversion + unit tests.
Diffstat (limited to 'src/pyexiv2.py')
-rw-r--r--src/pyexiv2.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index c679302..012dc54 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -588,14 +588,11 @@ class XmpTag(MetadataTag):
else:
return {'type': mtype, 'subtype': msubtype}
- elif xtype == 'ProperName':
- # TODO
- return value
elif xtype == 'Real':
# TODO
return value
- elif xtype == 'Text':
+ elif xtype in ('ProperName', 'Text'):
try:
return unicode(value, 'utf-8')
except TypeError: