commit | 8cf8f068a354b4476461fd8790f463b6b7cd4ffe | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Tue Aug 04 15:44:14 2015 +0200 |
committer | Chris Liechti <cliechti@gmx.net> | Tue Aug 04 15:44:14 2015 +0200 |
tree | a54d8757019b84ae715da41d8e2b6b18c5e15bc4 | |
parent | 5c4d2d83c8f711b9704b4ee159207db61d45a93f [diff] [blame] |
posix: clear OCRNL/ONLCR flags (CR/LF translation settings)
diff --git a/serial/serialposix.py b/serial/serialposix.py index 5542d28..41c4423 100644 --- a/serial/serialposix.py +++ b/serial/serialposix.py
@@ -337,7 +337,7 @@ if hasattr(TERMIOS, flag): lflag &= ~getattr(TERMIOS, flag) - oflag &= ~(TERMIOS.OPOST) + oflag &= ~(TERMIOS.OPOST|TERMIOS.ONLCR|TERMIOS.OCRNL) iflag &= ~(TERMIOS.INLCR|TERMIOS.IGNCR|TERMIOS.ICRNL|TERMIOS.IGNBRK) if hasattr(TERMIOS, 'IUCLC'): iflag &= ~TERMIOS.IUCLC