Fixed a pre-existing Python 3 bug.

This commit is contained in:
Alastair Houghton 2014-03-26 11:12:14 +00:00
parent 5904ac1718
commit 3655a0ecce

View File

@ -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: