mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06: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 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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user