Skip to content

Commit 5295d31

Browse files
committed
Fix to writing correctly the serialised game to a named file.
1 parent d27e16d commit 5295d31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pygambit/game.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ class Game:
11081108
filepath_or_buffer.write(serialized_game)
11091109
else:
11101110
with open(filepath_or_buffer, "w") as f:
1111-
f.write(serialized_game)
1111+
f.write(serialized_game, serialized_game.decode())
11121112

11131113
def to_efg(
11141114
self,

0 commit comments

Comments
 (0)