diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-24 02:00:50 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-24 02:00:50 +0000 |
commit | 1e2a6dff0eb03546659c6f5b122f15f1faa08a01 (patch) | |
tree | 235cb2eaca3f487f3b660a47d47c536ad5c2cfdf | |
parent | 6066f8429c63c4b95d0f24f3e142a767ed0a7ddd (diff) | |
download | pyserial-git-1e2a6dff0eb03546659c6f5b122f15f1faa08a01.tar.gz |
minor cleanups
-rw-r--r-- | pyserial/serial/serialwin32.py | 3 | ||||
-rw-r--r-- | pyserial/serial/sermsdos.py | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/pyserial/serial/serialwin32.py b/pyserial/serial/serialwin32.py index 35415db..8dfc26d 100644 --- a/pyserial/serial/serialwin32.py +++ b/pyserial/serial/serialwin32.py @@ -19,8 +19,7 @@ def device(portnum): return 'COM%d' % (portnum+1) #numbers are transformed to a string class Serial(SerialBase): - """Serial port implemenation for Win32. This implemenatation requires a - win32all installation.""" + """Serial port implementation for Win32 based on ctypes.""" BAUDRATES = (50,75,110,134,150,200,300,600,1200,1800,2400,4800,9600, 19200,38400,57600,115200) diff --git a/pyserial/serial/sermsdos.py b/pyserial/serial/sermsdos.py index d4b65dd..c3560d0 100644 --- a/pyserial/serial/sermsdos.py +++ b/pyserial/serial/sermsdos.py @@ -52,10 +52,10 @@ BAUD_RATES = { 19200: "19"} (PARITY_NONE, PARITY_EVEN, PARITY_ODD, PARITY_MARK, -PARITY_SPACE) = range(5) +PARITY_SPACE) = (0, 1, 2, 3, 4) (STOPBITS_ONE, STOPBITS_ONEANDAHALF, STOPBITS_TWO) = (1, 1.5, 2) -FIVEBITS, SIXBITS, SEVENBITS, EIGHTBITS = (5,6,7,8) +FIVEBITS, SIXBITS, SEVENBITS, EIGHTBITS = (5, 6, 7, 8) (RETURN_ERROR, RETURN_BUSY, RETURN_RETRY, RETURN_READY, RETURN_NONE) = ('E', 'B', 'P', 'R', 'N') portNotOpenError = ValueError('port not open') |