Fix bytes which should be bytearray

This commit is contained in:
Sandro Mani 2013-08-28 20:18:13 +02:00
parent eee43319bb
commit 4be146cf27

View File

@ -718,7 +718,7 @@ class Image:
if self.mode == "L" and mode == "RGBA" and "transparency" in self.info:
from PIL import ImagePalette
self.mode = "P"
bytePalette = bytes([i//3 for i in range(768)])
bytePalette = bytearray([i//3 for i in range(768)])
self.palette = ImagePalette.raw("RGB", bytePalette)
self.palette.dirty = 1
self.load()