mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Fixed unused imports and removed or commented unused variables from FpximagePlugin
This commit is contained in:
parent
174d9ac083
commit
75a760e5d6
|
@ -20,7 +20,7 @@ __version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
from PIL import Image, ImageFile
|
from PIL import Image, ImageFile
|
||||||
from PIL.OleFileIO import *
|
from PIL.OleFileIO import i8, i32, MAGIC
|
||||||
|
|
||||||
|
|
||||||
# we map from colour field tuples to (mode, rawmode) descriptors
|
# we map from colour field tuples to (mode, rawmode) descriptors
|
||||||
|
@ -130,15 +130,15 @@ class FpxImageFile(ImageFile.ImageFile):
|
||||||
fp = self.ole.openstream(stream)
|
fp = self.ole.openstream(stream)
|
||||||
|
|
||||||
# skip prefix
|
# skip prefix
|
||||||
p = fp.read(28)
|
fp.read(28)
|
||||||
|
|
||||||
# header stream
|
# header stream
|
||||||
s = fp.read(36)
|
s = fp.read(36)
|
||||||
|
|
||||||
size = i32(s, 4), i32(s, 8)
|
size = i32(s, 4), i32(s, 8)
|
||||||
tilecount = i32(s, 12)
|
#tilecount = i32(s, 12)
|
||||||
tilesize = i32(s, 16), i32(s, 20)
|
tilesize = i32(s, 16), i32(s, 20)
|
||||||
channels = i32(s, 24)
|
#channels = i32(s, 24)
|
||||||
offset = i32(s, 28)
|
offset = i32(s, 28)
|
||||||
length = i32(s, 32)
|
length = i32(s, 32)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user