mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Remove 'del draw' from code example
This commit is contained in:
parent
6ee33d81e4
commit
cbfc832ccd
|
@ -25,7 +25,6 @@ Example: Draw a gray cross over an image
|
||||||
draw = ImageDraw.Draw(im)
|
draw = ImageDraw.Draw(im)
|
||||||
draw.line((0, 0) + im.size, fill=128)
|
draw.line((0, 0) + im.size, fill=128)
|
||||||
draw.line((0, im.size[1], im.size[0], 0), fill=128)
|
draw.line((0, im.size[1], im.size[0], 0), fill=128)
|
||||||
del draw
|
|
||||||
|
|
||||||
# write to stdout
|
# write to stdout
|
||||||
im.save(sys.stdout, "PNG")
|
im.save(sys.stdout, "PNG")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user