Fix Flake8

This commit is contained in:
Hugo 2018-12-29 17:00:23 +02:00 committed by Andrew Murray
parent 2dcf6cafb2
commit 4ff47705a7

View File

@ -293,9 +293,10 @@ class GifImageFile(ImageFile.ImageFile):
if self.__frame == 0: if self.__frame == 0:
# On the first frame, clear the buffer. Use the transparency index # On the first frame, clear the buffer. Use the transparency index
# if we have one, otherwise use the background index. # if we have one, otherwise use the background index.
default_color = self.info.get("transparency", default_color = self.info.get(
self.info.get("background", 0)) "transparency", self.info.get("background", 0)
self.im.paste(default_color, (0,0, self.size[0], self.size[1])) )
self.im.paste(default_color, (0, 0, self.size[0], self.size[1]))
def tell(self): def tell(self):
return self.__frame return self.__frame