mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Merge pull request #86 from radarhere/cleanup-names
Cleanup: adjust names
This commit is contained in:
commit
967c875e6b
|
@ -421,8 +421,8 @@ class Color3DLUT(MultibandFilter):
|
|||
except TypeError:
|
||||
size = (size, size, size)
|
||||
size = [int(x) for x in size]
|
||||
for size1D in size:
|
||||
if not 2 <= size1D <= 65:
|
||||
for size_1d in size:
|
||||
if not 2 <= size_1d <= 65:
|
||||
raise ValueError("Size should be in [2, 65] range.")
|
||||
return size
|
||||
|
||||
|
|
|
@ -182,7 +182,7 @@ def _save(im, fp, filename):
|
|||
fp.write(struct.pack(">l", pinmax))
|
||||
fp.write(struct.pack("4s", b"")) # dummy
|
||||
fp.write(struct.pack("79s", img_name)) # truncates to 79 chars
|
||||
fp.write(struct.pack("s", b"")) # force null byte after imgname
|
||||
fp.write(struct.pack("s", b"")) # force null byte after img_name
|
||||
fp.write(struct.pack(">l", colormap))
|
||||
fp.write(struct.pack("404s", b"")) # dummy
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user