summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2008-06-18 23:50:16 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2008-06-18 23:50:16 +0000
commitdce54669121d71244a8ca424827bef463743bb9b (patch)
tree9d37f9a9183743a4e058058dc72612c8bf4752e2
parentf19610b5ff79e620bf578b82db9decfa3cb356d7 (diff)
downloadpyserial-git-dce54669121d71244a8ca424827bef463743bb9b.tar.gz
fix samall typo generating an error
-rw-r--r--pyserial/serial/serialwin32.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyserial/serial/serialwin32.py b/pyserial/serial/serialwin32.py
index b44331c..508a95f 100644
--- a/pyserial/serial/serialwin32.py
+++ b/pyserial/serial/serialwin32.py
@@ -11,7 +11,7 @@ import win32event # We use events and the WaitFor[Single|Multiple]Objects functi
import win32con # constants.
from serialutil import *
-VERSION = "$Revision: 1.37 $".split()[1] #extract CVS version
+VERSION = "$Revision: 1.38 $".split()[1] #extract CVS version
#from winbase.h. these should realy be in win32con
MS_CTS_ON = 16
@@ -46,7 +46,7 @@ class Serial(SerialBase):
None)
except Exception, msg:
self.hComPort = None #'cause __del__ is called anyway
- raise SerialException("could not open port %s: %s" % (self._portstr, msg))
+ raise SerialException("could not open port %s: %s" % (self.portstr, msg))
# Setup a 4k buffer
win32file.SetupComm(self.hComPort, 4096, 4096)