Skip to content

Commit d2e23e3

Browse files
nulanoradarhere
andauthored
simplify code
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 1656eda commit d2e23e3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/PIL/ImageGrab.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ def grabclipboard():
100100
o = struct.unpack_from("I", data)[0]
101101
if data[16] != 0:
102102
files = data[o:].decode("utf-16le").split("\0")
103-
return files[: files.index("")]
104103
else:
105104
files = data[o:].decode("mbcs").split("\0")
106-
return files[: files.index("")]
105+
return files[: files.index("")]
107106
if isinstance(data, bytes):
108107
import io
109108

0 commit comments

Comments
 (0)