Skip to content

Commit

Permalink
Do not clean-up after spur
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Mar 25, 2015
1 parent 9136502 commit 0a989f4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions chess/uci.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,13 +696,14 @@ def kill(self):
self.process.send_signal(signal.SIGKILL)

def close_std_streams(self):
# Spur does not do real clean up.
try:
self.process._process_stdin.close()
except AttributeError:
self.process._stdin.close()
self.process._io._handlers[0]._file_in.close()
self.process._io._handlers[1]._file_in.close()
# TODO: Spur does not do real clean up.
#try:
# self.process._process_stdin.close()
#except AttributeError:
# self.process._stdin.close()
#self.process._io._handlers[0]._file_in.close()
#self.process._io._handlers[1]._file_in.close()
pass

def send_line(self, string):
self.process.stdin_write(string.encode("utf-8"))
Expand Down

0 comments on commit 0a989f4

Please sign in to comment.