Skip to content

Commit 428cc40

Browse files
committed
Remove class game attr in ResultSetFromFile
1 parent 581b753 commit 428cc40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

axelrod/result_set.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ class ResultSetFromFile(ResultSet):
704704
"""A class to hold the results of a tournament. Reads in a CSV file produced
705705
by the tournament class.
706706
"""
707-
game = Game()
708707

709708
def __init__(self, filename, progress_bar=True,
710709
num_interactions=False, game=None):
@@ -720,7 +719,9 @@ def __init__(self, filename, progress_bar=True,
720719
displaying the progress bar, if it is not known and progress_bar
721720
is set to True then an initial count will take place
722721
"""
723-
if game is not None:
722+
if game is None:
723+
self.game = Game()
724+
else:
724725
self.game = game
725726
self.players, self.interactions = self._read_csv(filename,
726727
progress_bar,

0 commit comments

Comments
 (0)