From 4d5994160841eafdb578ecaf6168cf90e2beccab Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 1 Jul 2018 14:47:48 +1000 Subject: [PATCH] Simplified dictionary pop --- src/PIL/Image.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index efd475ed0..c58952657 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1915,9 +1915,7 @@ class Image(object): # may mutate self! self.load() - save_all = False - if 'save_all' in params: - save_all = params.pop('save_all') + save_all = params.pop('save_all', False) self.encoderinfo = params self.encoderconfig = ()