mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
d6dcd803c7
commit
e73e92530c
|
@ -56,8 +56,7 @@ def grab(
|
|||
if bbox:
|
||||
# manual crop for windowed mode
|
||||
if window:
|
||||
left, top, right, bottom = bbox
|
||||
im_cropped = im.crop((left, top, right, bottom))
|
||||
im_cropped = im.crop(bbox)
|
||||
im.close()
|
||||
return im_cropped
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user