summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2002-04-08 23:31:01 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2002-04-08 23:31:01 +0000
commit09cadc60ec7b4b353394bc031b0cc759114044e6 (patch)
treee4d92fc9fa7cc844b648e4aeae85411f2d966817
parent3c422ccf9817bb79b30fc20ee3863bd3d8ad5997 (diff)
downloadpyserial-git-09cadc60ec7b4b353394bc031b0cc759114044e6.tar.gz
one should copy'n'paste all lines ;-)
-rw-r--r--pyserial/serial/serialposix.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyserial/serial/serialposix.py b/pyserial/serial/serialposix.py
index faa4af9..b45dd75 100644
--- a/pyserial/serial/serialposix.py
+++ b/pyserial/serial/serialposix.py
@@ -12,7 +12,7 @@
import sys, os, fcntl, termios, struct, string, select
import serialutil
-VERSION = string.split("$Revision: 1.6 $")[1] #extract CVS version
+VERSION = string.split("$Revision: 1.7 $")[1] #extract CVS version
PARITY_NONE, PARITY_EVEN, PARITY_ODD = range(3)
STOPBITS_ONE, STOPBITS_TWO = (1, 2)
@@ -236,6 +236,7 @@ class Serial(serialutil.FileLike):
else:
self.cflag = self.cflag & ~(TERMIOS.CRTSCTS)
elif hasattr(TERMIOS, 'CNEW_RTSCTS'): #try it with alternate constant name
+ if rtscts:
self.cflag = self.cflag | (TERMIOS.CNEW_RTSCTS)
else:
self.cflag = self.cflag & ~(TERMIOS.CNEW_RTSCTS)