diff options
author | Chris Liechti <cliechti@gmx.net> | 2017-03-08 02:44:04 +0100 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2017-03-08 02:44:04 +0100 |
commit | 1c4bc8116a3b9c4d35c31a92ff1bf5100b81a7ab (patch) | |
tree | b4c9a8b375361fca4ca58da4a9602041217a563a /serial/serialposix.py | |
parent | 23fe2ecd314e8b0f711c641ea69b089362bcd527 (diff) | |
download | pyserial-git-1c4bc8116a3b9c4d35c31a92ff1bf5100b81a7ab.tar.gz |
chore: release 3.3v3.3
- update changes
- update version
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r-- | serial/serialposix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/serialposix.py b/serial/serialposix.py index cff3417..bb2fa03 100644 --- a/serial/serialposix.py +++ b/serial/serialposix.py @@ -302,7 +302,7 @@ class Serial(SerialBase, PlatformSpecific): """Set communication parameters on opened port.""" if self.fd is None: raise SerialException("Can only operate on a valid file descriptor") - + # if exclusive lock is requested, create it before we modify anything else if self._exclusive is not None: if self._exclusive: @@ -312,7 +312,7 @@ class Serial(SerialBase, PlatformSpecific): raise SerialException(msg.errno, "Could not exclusively lock port {}: {}".format(self._port, msg)) else: fcntl.flock(self.fd, fcntl.LOCK_UN) - + custom_baud = None vmin = vtime = 0 # timeout is done via select |