In Python 3 we can always use zip
@@ -653,8 +653,7 @@ class Test(unittest.TestCase):
r2 = png.Reader(bytes=pngsuite.png[k])
_, _, pixels1, info1 = r1.asDirect()
_, _, pixels2, info2 = r2.asDirect()
- izip = getattr(itertools, "izip", zip)
- for row1, row2 in izip(pixels1, pixels2):
+ for row1, row2 in zip(pixels1, pixels2):
self.assertEqual(row1, row2)
for i in range(len(row1)):
row1[i] = 11117 % (i + 1)
