consistency

This commit is contained in:
wiredfool 2014-04-07 22:24:48 -07:00
parent 327ea209b8
commit 213cec00cb

View File

@ -101,7 +101,7 @@ class PpmImageFile(ImageFile.ImageFile):
if s > 255: if s > 255:
if not mode == 'L': if not mode == 'L':
raise ValueError("Too many colors for band: %s" %s) raise ValueError("Too many colors for band: %s" %s)
if s <= 2**16 - 1: if s < 2**16:
self.mode = 'I' self.mode = 'I'
rawmode = 'I;16B' rawmode = 'I;16B'
else: else: