diff options
author | Lenard Spencer <lenard@lenardspencer.com> | 2017-06-19 06:52:22 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:27:26 -0500 |
commit | 2012566954daf6273ece3130bdf17b8eee8aaf55 (patch) | |
tree | 07e19bd24196bbd5ba5c8053a5e9d4b91c855851 /misc/gourmet/tostring-to-tobytes.patch | |
parent | 354bc6c32bef6a1189755e3ebe784742bafbabfb (diff) |
misc/gourmet: Switch from tostring to tobytes in the code.
This is needed for the newer python-2.7.x.
Include two additional dependencies
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'misc/gourmet/tostring-to-tobytes.patch')
-rw-r--r-- | misc/gourmet/tostring-to-tobytes.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/gourmet/tostring-to-tobytes.patch b/misc/gourmet/tostring-to-tobytes.patch new file mode 100644 index 0000000000000..e42c59403d51f --- /dev/null +++ b/misc/gourmet/tostring-to-tobytes.patch @@ -0,0 +1,26 @@ +diff --git a/gourmet/gtk_extras/ratingWidget.py b/gourmet/gtk_extras/ratingWidget.py +index 0e01735..efa6463 100644 +--- a/gourmet/gtk_extras/ratingWidget.py ++++ b/gourmet/gtk_extras/ratingWidget.py +@@ -135,7 +135,7 @@ class StarGenerator: + if is_rgba: rowstride = 4 + else: rowstride = 3 + pb=gtk.gdk.pixbuf_new_from_data( +- image.tostring(), ++ image.tobytes(), + gtk.gdk.COLORSPACE_RGB, + is_rgba, + 8, +diff --git a/gourmet/plugins/browse_recipes/icon_helpers.py b/gourmet/plugins/browse_recipes/icon_helpers.py +index 61c772c..2e7b08b 100644 +--- a/gourmet/plugins/browse_recipes/icon_helpers.py ++++ b/gourmet/plugins/browse_recipes/icon_helpers.py +@@ -38,7 +38,7 @@ def get_pixbuf_from_image (image): + if is_rgba: rowstride = 4 + else: rowstride = 3 + pb=gtk.gdk.pixbuf_new_from_data( +- image.tostring(), ++ image.tobytes(), + gtk.gdk.COLORSPACE_RGB, + is_rgba, + 8, |