Skip to content

Commit

Permalink
Adding missing pyspiel.Bot.__init__(self).
Browse files Browse the repository at this point in the history
Hidden bug discovered while preparing for a third_party/pybind11 update
(testing with current pybind11 github master branch).

Backward compatible.

Relevant pybind11 change: pybind/pybind11#2152

PiperOrigin-RevId: 327643330
Change-Id: Ic867f6d1e1932c3898d4a6f8fb63acde4739204b
  • Loading branch information
DeepMind Technologies Ltd authored and open_spiel@google.com committed Aug 23, 2020
1 parent 30ab4d2 commit d8a7b1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions open_spiel/python/bots/gtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def __init__(self, game, exec_path, player_colors=("b", "w"),
command to tell it which player made the move.
suppress_stderr: Whether to suppress stderr from the binary.
"""
pyspiel.Bot.__init__(self)
self._process = subprocess.Popen(
exec_path, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=(subprocess.DEVNULL if suppress_stderr else None))
Expand Down

0 comments on commit d8a7b1f

Please sign in to comment.