Skip to content

Commit

Permalink
Revert unintentional change
Browse files Browse the repository at this point in the history
  • Loading branch information
npjg committed Oct 22, 2022
1 parent f2dfd0b commit cc45886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/BmpImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _bitmap(self, header=0, offset=0):
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"]))
)
Expand Down

0 comments on commit cc45886

Please sign in to comment.