From a8603c89d758594ee07a4b424f45ffe1db5087db Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 20 Aug 2019 10:54:31 +0200 Subject: [PATCH] Update ptyDriver.py --- src/fenrirscreenreader/screenDriver/ptyDriver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index a420bd06..4e1f9de0 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -103,7 +103,7 @@ class driver(screenDriver): self.env['general']['prevUser'] = getpass.getuser() self.env['general']['currUser'] = getpass.getuser() def readAll(self, fd, timeout = 1, interruptFd = None, len = 65536): - valueBytes = b'' + msgBytes = b'' fdList = [] fdList += [fd] if interruptFd: @@ -117,14 +117,14 @@ class driver(screenDriver): data = os.read(fd, len) if data == b'': raise EOFError - valueBytes += data + msgBytes += data # exit on interrupt available if interruptFd in r: break # respect timeout but wait a little bit of time to see if something more is here if (time.time() - starttime) >= timeout: break - return valueBytes + return msgBytes def openTerminal(self, columns, lines, command): p_pid, master_fd = pty.fork() if p_pid == 0: # Child.