Skip to content

Commit

Permalink
[#367] Fixed DisplayCAL.wexpect.spawn_unix.expect_loop() for MacOS/…
Browse files Browse the repository at this point in the history
…Linux.
  • Loading branch information
eoyilmaz committed Jun 5, 2024
1 parent 6e76545 commit 251489a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DisplayCAL/wexpect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,10 @@ def expect_loop(self, searcher, timeout=-1, searchwindowsize=-1):
c = self.read_nonblocking(self.maxread, timeout)
freshlen = len(c)
time.sleep(0.0001)
incoming = incoming + c #.decode()
if sys.platform == "win32":
incoming += c
else:
incoming += c.decode()
if timeout is not None:
timeout = end_time - time.time()
except EOF as e:
Expand Down

0 comments on commit 251489a

Please sign in to comment.