Skip to content

Commit

Permalink
doc example: use frombytes() instead of fromstring() which is removed…
Browse files Browse the repository at this point in the history
… since PIL V8.0.0 (GH-193)
  • Loading branch information
siberianfox authored Oct 24, 2021
1 parent a0f7ac9 commit 287d8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 287d8ac

Please sign in to comment.