aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-07-21 22:00:11 +0200
committerOlivier Tilloy <olivier@tilloy.net>2009-07-21 22:00:11 +0200
commitf64fa85fb9718385f669fd31b410cef09d82b0d3 (patch)
treea2cabec214e38f11ad7454b78e3b5b2dcec099c5
parent89f5d30556d7692222c12695ad2bd80042212ac8 (diff)
downloadpyexiv2-f64fa85fb9718385f669fd31b410cef09d82b0d3.tar.gz
Improved documentation.
-rw-r--r--src/pyexiv2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index 2dbb07a..e94c64b 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -1353,6 +1353,7 @@ class ImageMetadata(object):
raise KeyError(key)
def _set_exif_tag(self, tag):
+ # Set an EXIF tag. If the tag already exists, its value is overwritten.
if type(tag) is not ExifTag:
raise TypeError('Expecting an ExifTag')
self._image.setExifTagValue(tag.key, tag.to_string())
@@ -1372,6 +1373,8 @@ class ImageMetadata(object):
self._image.setExifTagValue(key, value)
def _set_iptc_tag(self, tag):
+ # Set an IPTC tag. If the tag already exists, its values are
+ # overwritten.
if type(tag) is not IptcTag:
raise TypeError('Expecting an IptcTag')
self._image.setIptcTagValues(tag.key, tag.to_string())
@@ -1395,6 +1398,7 @@ class ImageMetadata(object):
self._image.setIptcTagValues(key, values)
def _set_xmp_tag(self, tag):
+ # Set an XMP tag. If the tag already exists, its value is overwritten.
if type(tag) is not XmpTag:
raise TypeError('Expecting an XmpTag')
self._image.setXmpTagValue(tag.key, tag.to_string())