mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Get integers, not single-item lists of integers
This commit is contained in:
parent
c79204bf08
commit
a0f50d7305
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user