mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-08 23:23:15 +03:00
Don't redeclare loop variable
This commit is contained in:
parent
b863da6deb
commit
9d87b26a67
|
@ -27,15 +27,15 @@ def test_sanity():
|
||||||
"HSV",
|
"HSV",
|
||||||
)
|
)
|
||||||
|
|
||||||
for mode in modes:
|
for input_mode in modes:
|
||||||
im = hopper(mode)
|
im = hopper(input_mode)
|
||||||
for mode in modes:
|
for output_mode in modes:
|
||||||
convert(im, mode)
|
convert(im, output_mode)
|
||||||
|
|
||||||
# Check 0
|
# Check 0
|
||||||
im = Image.new(mode, (0, 0))
|
im = Image.new(input_mode, (0, 0))
|
||||||
for mode in modes:
|
for output_mode in modes:
|
||||||
convert(im, mode)
|
convert(im, output_mode)
|
||||||
|
|
||||||
|
|
||||||
def test_default():
|
def test_default():
|
||||||
|
|
|
@ -64,7 +64,7 @@ class XpmImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
palette = [b"\0\0\0"] * 256
|
palette = [b"\0\0\0"] * 256
|
||||||
|
|
||||||
for i in range(pal):
|
for _ in range(pal):
|
||||||
|
|
||||||
s = self.fp.readline()
|
s = self.fp.readline()
|
||||||
if s[-2:] == b"\r\n":
|
if s[-2:] == b"\r\n":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user