From 7223a92d3a166d7c9d5c0c64ac374d6e46572b0e Mon Sep 17 00:00:00 2001 From: John Lin Date: Thu, 9 Sep 2021 14:45:07 +0800 Subject: [PATCH] Use frombytes instead of fromstring which is removed since PIL V8.0.0 --- 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