Skip to content

Commit 3463038

Browse files
committed
Close output file on win when not build results.
1 parent f58c34b commit 3463038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/tournament.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def play(self, build_results=True, filename=None,
126126
return self._build_result_set(progress_bar=progress_bar,
127127
keep_interactions=keep_interactions,
128128
in_memory=in_memory)
129-
else:
129+
elif not in_memory:
130130
self.outputfile.close()
131131

132132
def _build_result_set(self, progress_bar=True, keep_interactions=False,

0 commit comments

Comments
 (0)