Mercurial > libervia-desktop-kivy
diff cagou/core/image.py @ 312:772c170b47a9
Python3 port:
/!\ Cagou now runs with Python 3.6+
Port has been done in the same way as for backend (check backend commit b2d067339de3
message for details).
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 13 Aug 2019 19:14:22 +0200 |
parents | 1b835bcfa663 |
children | 4d660b252487 |
line wrap: on
line diff
--- a/cagou/core/image.py Mon Aug 05 11:21:54 2019 +0200 +++ b/cagou/core/image.py Tue Aug 13 19:14:22 2019 +0200 @@ -58,14 +58,14 @@ # internal decompressed representation from pillow # and im.save would need processing to handle format data = io.BytesIO(open(filename, "rb").read()) - cache_filename = u"{}.{}".format(filename,ext) # needed for kivy's Image to use cache + cache_filename = "{}.{}".format(filename,ext) # needed for kivy's Image to use cache self._coreimage = ci = CoreImage(data, ext=ext, filename=cache_filename, mipmap=mipmap, anim_delay=self.anim_delay, keep_data=self.keep_data, nocache=self.nocache) except Exception as e: - log.warning(u"Can't load image: {}".format(e)) + log.warning("Can't load image: {}".format(e)) self._coreimage = ci = None if ci: