diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-03-02 09:44:17 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-03-02 09:44:17 +0100 |
commit | 55fbb1a4cb21200c4f8b080bcfa755c6799db196 (patch) | |
tree | c54b69daa4d057f6f6435defe492c65d499f3249 | |
parent | a0f07cc77ff4f09a0025e1f5b4131b5f8a2d55fc (diff) | |
download | pyexiv2-55fbb1a4cb21200c4f8b080bcfa755c6799db196.tar.gz |
Do not use private attributes where not needed.
-rw-r--r-- | src/pyexiv2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py index a6ee1b9..f86f0af 100644 --- a/src/pyexiv2.py +++ b/src/pyexiv2.py @@ -407,7 +407,7 @@ class ExifTag(MetadataTag): """ super(ExifTag, self).__init__(key, name, label, description, xtype, value) self.fvalue = fvalue - self.value = ExifTag._convert_to_python(self._value, self.xtype) + self.value = ExifTag._convert_to_python(value, xtype) """ def __convert_value_to_python_type(self): @@ -574,7 +574,7 @@ class IptcTag(MetadataTag): Constructor. """ super(IptcTag, self).__init__(key, name, label, description, xtype, values) - self.values = map(lambda x: IptcTag._convert_to_python(x, self.xtype), self._value) + self.values = map(lambda x: IptcTag._convert_to_python(x, xtype), values) @staticmethod def _convert_to_python(value, xtype): @@ -739,7 +739,7 @@ class XmpTag(MetadataTag): Constructor. """ super(XmpTag, self).__init__(key, name, label, description, xtype, values) - self.values = map(lambda x: XmpTag._convert_to_python(x, self.xtype), self._value) + self.values = map(lambda x: XmpTag._convert_to_python(x, xtype), values) @staticmethod def _convert_to_python(value, xtype): |