Skip to content

Commit 4d9b3bf

Browse files
committed
Fix Gaviota tables opened as writable (fixes #1166)
1 parent 1ce4d3f commit 4d9b3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chess/gaviota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ def _open_tablebase(self, req: Request) -> BinaryIO:
16631663

16641664
if stream is None:
16651665
path = self.available_tables[req.egkey]
1666-
stream = open(path, "rb+")
1666+
stream = open(path, "rb")
16671667
self.egtb_loadindexes(req.egkey, stream)
16681668
self.streams[req.egkey] = stream
16691669

0 commit comments

Comments
 (0)