mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 17:33:08 +03:00
Update src/PIL/ImageStat.py
Simplification of return statement Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
96fe0a103b
commit
ac47b75953
|
@ -62,10 +62,7 @@ class Stat:
|
||||||
if histogram[i]:
|
if histogram[i]:
|
||||||
res_max = i
|
res_max = i
|
||||||
break
|
break
|
||||||
if res_max >= res_min:
|
|
||||||
return res_min, res_max
|
return res_min, res_max
|
||||||
else:
|
|
||||||
return (255, 0)
|
|
||||||
|
|
||||||
v = []
|
v = []
|
||||||
for i in range(0, len(self.h), 256):
|
for i in range(0, len(self.h), 256):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user