Skip to content

Commit e73e925

Browse files
yankeguoradarhere
andauthored
Apply suggestions from code review
Co-authored-by: Andrew Murray <[email protected]>
1 parent d6dcd80 commit e73e925

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PIL/ImageGrab.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def grab(
5656
if bbox:
5757
# manual crop for windowed mode
5858
if window:
59-
left, top, right, bottom = bbox
60-
im_cropped = im.crop((left, top, right, bottom))
59+
im_cropped = im.crop(bbox)
6160
im.close()
6261
return im_cropped
6362
else:

0 commit comments

Comments
 (0)