From 4ffa0e4086fff79314391b296ba196d0ca2b0d3b Mon Sep 17 00:00:00 2001 From: nulano Date: Fri, 5 Jul 2019 10:45:55 +0200 Subject: [PATCH] code style --- src/PIL/ImageGrab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIL/ImageGrab.py b/src/PIL/ImageGrab.py index 5cf4ab6ee83..e5b09c4dad8 100644 --- a/src/PIL/ImageGrab.py +++ b/src/PIL/ImageGrab.py @@ -52,9 +52,9 @@ def grab(bbox=None, include_layered_windows=False, multimonitor=False): -1, ) if bbox: - xo, yo = offset + x0, y0 = offset left, top, right, bottom = bbox - im = im.crop((left - xo, top - yo, right - xo, bottom - yo)) + im = im.crop((left - x0, top - y0, right - x0, bottom - y0)) return im