consistency with other platforms
diff --git a/pyserial/serial/serialjava.py b/pyserial/serial/serialjava.py
index c2421b0..9b56c95 100644
--- a/pyserial/serial/serialjava.py
+++ b/pyserial/serial/serialjava.py
@@ -9,7 +9,7 @@
import javax.comm
from serialutil import *
-VERSION = "$Revision: 1.9 $".split()[1] #extract CVS version
+VERSION = "$Revision: 1.10 $".split()[1] #extract CVS version
def device(portnumber):
@@ -157,15 +157,15 @@
if not self.sPort: raise portNotOpenError
self.sPort.sendBreak(duration*1000.0)
- def setRTS(self,on=1):
+ def setRTS(self, level=1):
"""Set terminal status line: Request To Send"""
if not self.sPort: raise portNotOpenError
- self.sPort.setRTS(on)
+ self.sPort.setRTS(level)
- def setDTR(self,on=1):
+ def setDTR(self, level=1):
"""Set terminal status line: Data Terminal Ready"""
if not self.sPort: raise portNotOpenError
- self.sPort.setDTR(on)
+ self.sPort.setDTR(level)
def getCTS(self):
"""Read terminal status line: Clear To Send"""
@@ -209,4 +209,3 @@
del s
-
diff --git a/pyserial/serial/serialposix.py b/pyserial/serial/serialposix.py
index f9353c9..4d6f36a 100644
--- a/pyserial/serial/serialposix.py
+++ b/pyserial/serial/serialposix.py
@@ -13,7 +13,7 @@
import sys, os, fcntl, termios, struct, select, errno
from serialutil import *
-VERSION = "$Revision: 1.32 $".split()[1] #extract CVS version
+VERSION = "$Revision: 1.33 $".split()[1] #extract CVS version
#Do check the Python version as some constants have moved.
if (sys.hexversion < 0x020100f0):
@@ -409,3 +409,4 @@
print repr(s.read(5))
print s.inWaiting()
del s
+