Revert unintentional change

This commit is contained in:
Nathanael Gentry 2022-10-21 20:59:02 -04:00
parent f2dfd0bfb3
commit cc45886bc3

View File

@ -229,7 +229,7 @@ class BmpImageFile(ImageFile.ImageFile):
palette = read(padding * file_info["colors"])
greyscale = True
indices = (
(0, file_info["colors"])
(0, 255)
if file_info["colors"] == 2
else list(range(file_info["colors"]))
)