From 287d8acf6dea4b673897a8497bd7d47e32fc6bd2 Mon Sep 17 00:00:00 2001 From: Jack Lam <30902536+siberianfox@users.noreply.github.com> Date: Sun, 24 Oct 2021 18:31:52 +0800 Subject: [PATCH] doc example: use frombytes() instead of fromstring() which is removed since PIL V8.0.0 (GH-193) --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8c7d0510..9c645c98 100644 --- a/README.rst +++ b/README.rst @@ -795,7 +795,7 @@ implementation`_ for the `Computer Language Benchmarks Game`_. # use Pillow to display the image from PIL import Image - image = Image.fromstring('1', (image_size, image_size), result_buffer) + image = Image.frombytes('1', (image_size, image_size), result_buffer) image.show() Note how the example creates a separate ``LuaRuntime`` for each thread