mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fixed a pre-existing Python 3 bug.
This commit is contained in:
parent
5904ac1718
commit
3655a0ecce
|
@ -160,7 +160,7 @@ class IcnsFile:
|
||||||
self.dct = dct = {}
|
self.dct = dct = {}
|
||||||
self.fobj = fobj
|
self.fobj = fobj
|
||||||
sig, filesize = nextheader(fobj)
|
sig, filesize = nextheader(fobj)
|
||||||
if sig != 'icns':
|
if sig != b'icns':
|
||||||
raise SyntaxError('not an icns file')
|
raise SyntaxError('not an icns file')
|
||||||
i = HEADERSIZE
|
i = HEADERSIZE
|
||||||
while i < filesize:
|
while i < filesize:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user