From c09dcd82a7b73258a4af0e894cce013f73ae84bf Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 26 Oct 2017 22:16:12 +0530 Subject: [PATCH] Fix Python 3 fix :/ closes #57 --- mitogen/master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/master.py b/mitogen/master.py index 1c95ea2a..ca676299 100644 --- a/mitogen/master.py +++ b/mitogen/master.py @@ -94,11 +94,11 @@ def flags(names): return sum(getattr(termios, name) for name in names.split()) -def cfmakeraw(flags): +def cfmakeraw(tflags): """Given a list returned by :py:func:`termios.tcgetattr`, return a list that has been modified in the same manner as the `cfmakeraw()` C library function.""" - iflag, oflag, cflag, lflag, ispeed, ospeed, cc = flags + iflag, oflag, cflag, lflag, ispeed, ospeed, cc = tflags iflag &= ~flags('IGNBRK BRKINT PARMRK ISTRIP INLCR IGNCR ICRNL IXON') oflag &= ~flags('OPOST IXOFF') lflag &= ~flags('ECHO ECHOE ECHONL ICANON ISIG IEXTEN')