diff options
Diffstat (limited to 'serial')
-rw-r--r-- | serial/__init__.py | 4 | ||||
-rw-r--r-- | serial/serialposix.py | 4 | ||||
-rw-r--r-- | serial/serialutil.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/serial/__init__.py b/serial/__init__.py index 4cd3a25..64c43c1 100644 --- a/serial/__init__.py +++ b/serial/__init__.py @@ -3,7 +3,7 @@ # This is a wrapper module for different platform implementations # # This file is part of pySerial. https://github.com/pyserial/pyserial -# (C) 2001-2016 Chris Liechti <cliechti@gmx.net> +# (C) 2001-2017 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause @@ -13,7 +13,7 @@ import importlib from serial.serialutil import * #~ SerialBase, SerialException, to_bytes, iterbytes -__version__ = '3.2.1' +__version__ = '3.3' VERSION = __version__ 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 diff --git a/serial/serialutil.py b/serial/serialutil.py index 322b7e3..e4df90f 100644 --- a/serial/serialutil.py +++ b/serial/serialutil.py @@ -227,7 +227,7 @@ class SerialBase(io.RawIOBase): self.dsrdtr = dsrdtr self.inter_byte_timeout = inter_byte_timeout self.exclusive = exclusive - + # watch for backward compatible kwargs if 'writeTimeout' in kwargs: self.write_timeout = kwargs.pop('writeTimeout') @@ -312,7 +312,7 @@ class SerialBase(io.RawIOBase): def exclusive(self): """Get the current exclusive access setting.""" return self._exclusive - + @exclusive.setter def exclusive(self, exclusive): """Change the exclusive access setting.""" |