Get integers, not single-item lists of integers

This commit is contained in:
hugovk 2017-03-04 19:58:49 +02:00
parent c79204bf08
commit a0f50d7305

View File

@ -65,7 +65,7 @@ class XVThumbImageFile(ImageFile.ImageFile):
s = s.strip().split()
self.mode = "P"
self.size = int(s[0:1]), int(s[1:2])
self.size = int(s[0]), int(s[1])
self.palette = ImagePalette.raw("RGB", PALETTE)
@ -74,6 +74,7 @@ class XVThumbImageFile(ImageFile.ImageFile):
self.fp.tell(), (self.mode, 0, 1)
)]
# --------------------------------------------------------------------
Image.register_open(XVThumbImageFile.format, XVThumbImageFile, _accept)