diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-03-30 09:11:41 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-03-30 09:11:41 +0200 |
commit | ec39efda4910da6e0f87da76284160d3dd9ecaa6 (patch) | |
tree | e22515904955e2e0284cdbc9d3109bfe25acea93 /src | |
parent | 938d8711997d22301718d3a181d638267abb0ef6 (diff) | |
download | pyexiv2-ec39efda4910da6e0f87da76284160d3dd9ecaa6.tar.gz |
Dictionary-like getter for tags.
Diffstat (limited to 'src')
-rw-r--r-- | src/pyexiv2.py | 2 |
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 |