mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 02:46:18 +03:00
Py2.7 compatibility
This commit is contained in:
parent
7fe29ec1c3
commit
f13b335a60
|
@ -24,7 +24,7 @@
|
||||||
# See also: http://www.fileformat.info/format/mspaint/egff.htm
|
# See also: http://www.fileformat.info/format/mspaint/egff.htm
|
||||||
|
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
from ._binary import i16le as i16, o16le as o16
|
from ._binary import i16le as i16, o16le as o16, i8
|
||||||
import struct, io
|
import struct, io
|
||||||
|
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
@ -131,7 +131,7 @@ class MspDecoder(ImageFile.PyDecoder):
|
||||||
(rowlen, x))
|
(rowlen, x))
|
||||||
idx = 0
|
idx = 0
|
||||||
while idx < rowlen:
|
while idx < rowlen:
|
||||||
runtype = row[idx]
|
runtype = i8(row[idx])
|
||||||
idx += 1
|
idx += 1
|
||||||
if runtype == 0:
|
if runtype == 0:
|
||||||
(runcount, runval) = struct.unpack("Bc", row[idx:idx+2])
|
(runcount, runval) = struct.unpack("Bc", row[idx:idx+2])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user