From ec39efda4910da6e0f87da76284160d3dd9ecaa6 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Mon, 30 Mar 2009 09:11:41 +0200 Subject: Dictionary-like getter for tags. --- src/pyexiv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pyexiv2.py') 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 -- cgit