Blob Blame History Raw
--- comix-4.0.4/src/image.py.tobytes	2015-12-11 15:24:35.785881231 +0900
+++ comix-4.0.4/src/image.py	2015-12-11 15:27:21.442228743 +0900
@@ -169,7 +169,7 @@
 
 def pil_to_pixbuf(image):
     """Return a pixbuf created from the PIL <image>."""
-    imagestr = image.tostring()
+    imagestr = getattr(image, "tobytes", getattr(image, "tostring"))()
     IS_RGBA = image.mode == 'RGBA'
     return gtk.gdk.pixbuf_new_from_data(imagestr, gtk.gdk.COLORSPACE_RGB,
         IS_RGBA, 8, image.size[0], image.size[1],