mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Changed dictionary comprehension style
This commit is contained in:
parent
37f5f1120a
commit
bf77bba323
|
@ -310,8 +310,8 @@ def _save(im, fp, filename):
|
|||
|
||||
# create the temporary set of pngs
|
||||
iconset = tempfile.mkdtemp('.iconset')
|
||||
provided_images = {im.width: im for im in
|
||||
im.encoderinfo.get("append_images", [])}
|
||||
provided_images = {im.width: im
|
||||
for im in im.encoderinfo.get("append_images", [])}
|
||||
last_w = None
|
||||
for w in [16, 32, 128, 256, 512]:
|
||||
prefix = 'icon_{}x{}'.format(w, w)
|
||||
|
|
Loading…
Reference in New Issue
Block a user