summarylogtreecommitdiffstats
path: root/02-use-frombytes.patch
diff options
context:
space:
mode:
authorMichael Lass2015-10-25 12:55:30 +0100
committerMichael Lass2015-10-25 13:06:42 +0100
commit86f9d30fa731af5ce603947f650dce71bf9e01e1 (patch)
tree914b300dfafdeb3293f2da15032e1579fb78614f /02-use-frombytes.patch
parentf99af289c3c90f5bf0fe6eab804572ead27e8b15 (diff)
downloadaur-macrofusion.tar.gz
Add two custom patches
* Add version speicification to certain gi modules. When they are missing this leads to warnings, or in some cases even to import errors. * Replace Image.fromstring with Image.frombytes. This is required to work with newer versions of python-pillow. fromstring was deprecated for a long time and was only an alias for fromstring anyway. Credits go to francoismelchior on AUR for digging into this.
Diffstat (limited to '02-use-frombytes.patch')
-rw-r--r--02-use-frombytes.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/02-use-frombytes.patch b/02-use-frombytes.patch
new file mode 100644
index 000000000000..4bd9b5c13836
--- /dev/null
+++ b/02-use-frombytes.patch
@@ -0,0 +1,12 @@
+diff -u -r a/macrofusion.py b/macrofusion.py
+--- a/macrofusion.py 2015-10-25 12:58:58.621978780 +0100
++++ b/macrofusion.py 2015-10-25 12:59:55.896423282 +0100
+@@ -623,7 +623,7 @@
+
+ def pixbuf2Image(self, pb):
+ width,height = pb.get_width(),pb.get_height()
+- return Image.fromstring("RGB",(width,height),pb.get_pixels() )
++ return Image.frombytes("RGB",(width,height),pb.get_pixels() )
+
+ def put_files_to_the_list(self, fichiers):
+