Skip to content

Commit 6af3b3e

Browse files
author
martin
committed
fixed keys() for python3
1 parent 5bf200b commit 6af3b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axelrod/strategies/lookerup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ def __init__(self, lookup_table=None):
8787

8888
# rather than pass number of previous rounds to consider in as a separate variable, figure it out
8989
# the number of rounds is the length of the second element of any given key in the dict
90-
self.plays = len(self.lookup_table.keys()[0][1])
90+
self.plays = len(list(self.lookup_table.keys())[0][1])
9191

9292
# the number of opponent starting moves is the lgnth of the first element of any given key in the dict
93-
self.opponent_start_plays = len(self.lookup_table.keys()[0][0])
93+
self.opponent_start_plays = len(list(self.lookup_table.keys())[0][0])
9494

9595
if self.opponent_start_plays == 0:
9696
self.classifier['memory_depth'] = self.plays

0 commit comments

Comments
 (0)