From 57bbe34df56ccc0bc53b207c0e34ab2111e568df Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Fri, 28 Sep 2007 18:06:51 +0200 Subject: Fixed bug #146313 (passing the filename to the Image constructor as unicode fails): if filename is passed as unicode, it is converted to a regular string. --- 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 a23bfd9..1cb1586 100644 --- a/src/pyexiv2.py +++ b/src/pyexiv2.py @@ -281,7 +281,7 @@ class Image(libpyexiv2.Image): """ def __init__(self, filename): - libpyexiv2.Image.__init__(self, filename) + libpyexiv2.Image.__init__(self, str(filename)) self.__exifTagsDict = {} self.__iptcTagsDict = {} -- cgit