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