mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 00:32:27 +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:
|
if bbox:
|
||||||
# manual crop for windowed mode
|
# manual crop for windowed mode
|
||||||
if window:
|
if window:
|
||||||
left, top, right, bottom = bbox
|
im_cropped = im.crop(bbox)
|
||||||
im_cropped = im.crop((left, top, right, bottom))
|
|
||||||
im.close()
|
im.close()
|
||||||
return im_cropped
|
return im_cropped
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user