mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Merge pull request #3095 from hugovk/rm-del-draw
Remove 'del draw' from code example
This commit is contained in:
commit
572c06f6cc
|
@ -25,7 +25,6 @@ Example: Draw a gray cross over an image
|
|||
draw = ImageDraw.Draw(im)
|
||||
draw.line((0, 0) + im.size, fill=128)
|
||||
draw.line((0, im.size[1], im.size[0], 0), fill=128)
|
||||
del draw
|
||||
|
||||
# write to stdout
|
||||
im.save(sys.stdout, "PNG")
|
||||
|
|
Loading…
Reference in New Issue
Block a user