Replaced mixed tabs and spaces with spaces

This commit is contained in:
Andrew Murray 2016-05-10 22:23:23 +10:00
parent e51061dd59
commit 6de51536c4

View File

@ -66,7 +66,7 @@ class TestImagePath(PillowTestCase):
try:
# post patch, this fails with a memory error
x = evil()
# This fails due to the invalid malloc above,
# and segfaults
for i in range(200000):
@ -85,15 +85,15 @@ class TestImagePath(PillowTestCase):
class evil:
def __init__(self):
self.corrupt = Image.core.path(0x4000000000000000)
def __init__(self):
self.corrupt = Image.core.path(0x4000000000000000)
def __getitem__(self, i):
x = self.corrupt[i]
return struct.pack("dd", x[0], x[1])
def __getitem__(self, i):
x = self.corrupt[i]
return struct.pack("dd", x[0], x[1])
def __setitem__(self, i, x):
self.corrupt[i] = struct.unpack("dd", x)
def __setitem__(self, i, x):
self.corrupt[i] = struct.unpack("dd", x)
if __name__ == '__main__':