From 4ff47705a7593f1eb4bff662c4f98612f2958d8c Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 29 Dec 2018 17:00:23 +0200 Subject: [PATCH] Fix Flake8 --- src/PIL/GifImagePlugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py index 5c17545cd..9241a0586 100644 --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -293,9 +293,10 @@ class GifImageFile(ImageFile.ImageFile): if self.__frame == 0: # On the first frame, clear the buffer. Use the transparency index # if we have one, otherwise use the background index. - default_color = self.info.get("transparency", - self.info.get("background", 0)) - self.im.paste(default_color, (0,0, self.size[0], self.size[1])) + default_color = self.info.get( + "transparency", self.info.get("background", 0) + ) + self.im.paste(default_color, (0, 0, self.size[0], self.size[1])) def tell(self): return self.__frame