aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-03-30 09:11:41 +0200
committerOlivier Tilloy <olivier@tilloy.net>2009-03-30 09:11:41 +0200
commitec39efda4910da6e0f87da76284160d3dd9ecaa6 (patch)
treee22515904955e2e0284cdbc9d3109bfe25acea93 /src
parent938d8711997d22301718d3a181d638267abb0ef6 (diff)
downloadpyexiv2-ec39efda4910da6e0f87da76284160d3dd9ecaa6.tar.gz
Dictionary-like getter for tags.
Diffstat (limited to 'src')
-rw-r--r--src/pyexiv2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index 902301e..ba1734a 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -1051,7 +1051,7 @@ class ImageMetadata(object):
self._tags['xmp'][key] = tag
return tag
- def get(self, key):
+ def __getitem__(self, key):
"""
Get a metadata tag for a given key.
DOCME