mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
Image.merge: Rename loop variable for clarity and type-safety.
This commit is contained in:
parent
c7136f7ff8
commit
ab6c60da1c
|
@ -2641,10 +2641,10 @@ def merge(mode, bands):
|
||||||
|
|
||||||
if getmodebands(mode) != len(bands) or "*" in mode:
|
if getmodebands(mode) != len(bands) or "*" in mode:
|
||||||
raise ValueError("wrong number of bands")
|
raise ValueError("wrong number of bands")
|
||||||
for im in bands[1:]:
|
for band in bands[1:]:
|
||||||
if im.mode != getmodetype(mode):
|
if band.mode != getmodetype(mode):
|
||||||
raise ValueError("mode mismatch")
|
raise ValueError("mode mismatch")
|
||||||
if im.size != bands[0].size:
|
if band.size != bands[0].size:
|
||||||
raise ValueError("size mismatch")
|
raise ValueError("size mismatch")
|
||||||
for band in bands:
|
for band in bands:
|
||||||
band.load()
|
band.load()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user