mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
consistency
This commit is contained in:
parent
327ea209b8
commit
213cec00cb
|
@ -101,7 +101,7 @@ class PpmImageFile(ImageFile.ImageFile):
|
|||
if s > 255:
|
||||
if not mode == 'L':
|
||||
raise ValueError("Too many colors for band: %s" %s)
|
||||
if s <= 2**16 - 1:
|
||||
if s < 2**16:
|
||||
self.mode = 'I'
|
||||
rawmode = 'I;16B'
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user