Skip to content

Commit 85a8973

Browse files
committed
Change pattern on _clear_matrix
1 parent ed3d6b9 commit 85a8973

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

axelrod/tests/unit/test_resultset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ def test_init(self):
191191
self.assertEqual(rs.num_players, len(self.players))
192192

193193
def _clear_matrix(self, matrix):
194-
for i in range(len(matrix)):
195-
for j in range(len(matrix[i])):
196-
matrix[i][j] = 0
194+
for i, row in enumerate(matrix):
195+
for j, _ in enumerate(row):
196+
matrix[i][j] = 0
197197

198198
def test_ne_vectors(self):
199199
rs_1 = axelrod.ResultSet(self.filename, self.players, self.repetitions)

0 commit comments

Comments
 (0)