mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47: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
							
								
									5ce88dbe53
								
							
						
					
					
						commit
						1f7e9c3b51
					
				|  | @ -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