mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 20:54:47 +03:00
Lint fixes
This commit is contained in:
parent
e988341295
commit
2a418ed102
|
@ -210,9 +210,9 @@ def SOF(self, marker):
|
|||
self.mode = "L"
|
||||
elif self.layers == 3:
|
||||
try:
|
||||
transform_flag = self.info['adobe_transform']
|
||||
transform_flag = self.info["adobe_transform"]
|
||||
if transform_flag == 0: # Unknown (RGB or CMYK)
|
||||
self.mode = 'YCbCr'
|
||||
self.mode = "YCbCr"
|
||||
elif transform_flag in (1, 2): # YCbCr or YCCK
|
||||
self.mode = "RGB"
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user