Loading cccli/commands/console.py +5 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,11 @@ class FakeTtySocket(object): tty.setraw(0) def recv(self, size): return os.read(0, 1024) data = os.read(0, size) if "\x1d" in data: # we need to raise a IOError to make sjrpc end the connection raise IOError() return data def send(self, data): return os.write(0, data) Loading Loading
cccli/commands/console.py +5 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,11 @@ class FakeTtySocket(object): tty.setraw(0) def recv(self, size): return os.read(0, 1024) data = os.read(0, size) if "\x1d" in data: # we need to raise a IOError to make sjrpc end the connection raise IOError() return data def send(self, data): return os.write(0, data) Loading