win32con.FILE_SHARE_READ | win32con.FILE_SHARE_WRITE,None,# no securitywin32con.OPEN_EXISTING, win32con.FILE_ATTRIBUTE_NORMAL| win32con.FILE_FLAG_OVERLAPPED,0)exceptpywintypes.erroras(errno, function, strerror): self.lockObject.release() eg.PrintError(self.text.errorOpen + self.deviceName ...
win32.FILE_ATTRIBUTE_NORMAL| win32.FILE_FLAG_OVERLAPPED,0)ifself.hComPort == win32.INVALID_HANDLE_VALUE: self.hComPort =None# 'cause __del__ is called anywayraiseSerialException("could not open port %r: %r"% (self.portstr, ctypes.WinError()))try: self._overlappedRead = win32.OVERLAP...
win32con.FILE_SHARE_READ | win32con.FILE_SHARE_WRITE,None,# no securitywin32con.OPEN_EXISTING, win32con.FILE_ATTRIBUTE_NORMAL| win32con.FILE_FLAG_OVERLAPPED,0)exceptpywintypes.erroras(errno, function, strerror): self.lockObject.release() eg.PrintError(self.text.errorOpen + self.deviceName ...