Small bug in PIL

Edward C. Jones edcjones at erols.com
Tue Mar 20 14:18:38 EST 2001


In the PIL (Python Imaging Library) source code file "Image.py", line 937, in
function "merge", the error message is incorrect. Here is the code:

    for im in bands[1:]:
        if im.mode != getmodetype(mode) or im.size != bands[0].size:
            raise ValueError, "wrong number of bands"

Thanks,
Ed Jones





More information about the Python-list mailing list