Merge pull request #3217 from radarhere/pop

Simplified dictionary pop
This commit is contained in:
Hugo 2018-07-01 12:49:32 +03:00 committed by GitHub
commit d52fd2b79b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = ()