From b5287ed17bda10877d84ba86fcf148ee74b93b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 3 Dec 2015 22:48:55 +0100 Subject: Imported Upstream version 0.4.11 --- rapid/rapid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rapid/rapid.py') diff --git a/rapid/rapid.py b/rapid/rapid.py index dd67b63..303e1f7 100755 --- a/rapid/rapid.py +++ b/rapid/rapid.py @@ -352,7 +352,7 @@ class DeviceCollection(gtk.TreeView): def create_cairo_image_surface(pil_image, image_width, image_height): - imgd = pil_image.tostring("raw","BGRA", 0, 1) + imgd = pil_image.tobytes("raw","BGRA", 0, 1) data = array.array('B',imgd) stride = image_width * 4 image = cairo.ImageSurface.create_for_data(data, cairo.FORMAT_ARGB32, -- cgit v1.2.3