Skip to content

Commit bce3b3a

Browse files
authored
Merge pull request #23894 from meeseeksmachine/auto-backport-of-pr-23881-on-v3.6.x
Backport PR #23881 on branch v3.6.x (Fix Pillow compatibility in example)
2 parents 38d0326 + 3f8939c commit bce3b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/introductory/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
from PIL import Image
246246

247247
img = Image.open('../../doc/_static/stinkbug.png')
248-
img.thumbnail((64, 64), Image.Resampling.LANCZOS) # resizes image in-place
248+
img.thumbnail((64, 64)) # resizes image in-place
249249
imgplot = plt.imshow(img)
250250

251251
###############################################################################

0 commit comments

Comments
 (0)