mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
pyflakes
This commit is contained in:
parent
268c419d7c
commit
5f9cad1a8e
|
@ -74,11 +74,9 @@ def isSpiderImage(filename):
|
||||||
fp = open(filename,'rb')
|
fp = open(filename,'rb')
|
||||||
f = fp.read(92) # read 23 * 4 bytes
|
f = fp.read(92) # read 23 * 4 bytes
|
||||||
fp.close()
|
fp.close()
|
||||||
bigendian = 1
|
|
||||||
t = struct.unpack('>23f',f) # try big-endian first
|
t = struct.unpack('>23f',f) # try big-endian first
|
||||||
hdrlen = isSpiderHeader(t)
|
hdrlen = isSpiderHeader(t)
|
||||||
if hdrlen == 0:
|
if hdrlen == 0:
|
||||||
bigendian = 0
|
|
||||||
t = struct.unpack('<23f',f) # little-endian
|
t = struct.unpack('<23f',f) # little-endian
|
||||||
hdrlen = isSpiderHeader(t)
|
hdrlen = isSpiderHeader(t)
|
||||||
return hdrlen
|
return hdrlen
|
||||||
|
|
Loading…
Reference in New Issue
Block a user