mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-20 21:41:02 +03:00
commit
6378465521
|
@ -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)
|
||||
|
|
|
@ -358,7 +358,7 @@ _initialized = 0
|
|||
|
||||
|
||||
def preinit():
|
||||
"Explicitly load standard file format drivers."
|
||||
"""Explicitly load standard file format drivers."""
|
||||
|
||||
global _initialized
|
||||
if _initialized >= 1:
|
||||
|
@ -2246,7 +2246,7 @@ class ImageTransformHandler(object):
|
|||
# Debugging
|
||||
|
||||
def _wedge():
|
||||
"Create greyscale wedge (for debugging only)"
|
||||
"""Create greyscale wedge (for debugging only)"""
|
||||
|
||||
return Image()._new(core.wedge("L"))
|
||||
|
||||
|
|
|
@ -663,7 +663,7 @@ _OUTMODES = {
|
|||
|
||||
|
||||
def putchunk(fp, cid, *data):
|
||||
"Write a PNG chunk (including CRC field)"
|
||||
"""Write a PNG chunk (including CRC field)"""
|
||||
|
||||
data = b"".join(data)
|
||||
|
||||
|
|
|
@ -200,7 +200,7 @@ class SpiderImageFile(ImageFile.ImageFile):
|
|||
|
||||
# given a list of filenames, return a list of images
|
||||
def loadImageSeries(filelist=None):
|
||||
" create a list of Image.images for use in montage "
|
||||
"""create a list of Image.images for use in montage"""
|
||||
if filelist is None or len(filelist) < 1:
|
||||
return
|
||||
|
||||
|
|
|
@ -73,8 +73,8 @@ def get_supported_features():
|
|||
|
||||
|
||||
def check(feature):
|
||||
return (feature in modules and check_module(feature) or \
|
||||
feature in codecs and check_codec(feature) or \
|
||||
return (feature in modules and check_module(feature) or
|
||||
feature in codecs and check_codec(feature) or
|
||||
feature in features and check_feature(feature))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user