Simplified dictionary pop

This commit is contained in:
Andrew Murray 2018-07-01 14:47:48 +10:00
parent 531f13828a
commit 4d59941608

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