Skip to content

Commit c9a22b1

Browse files
committed
serialdriver: remove version check
We now install our pyserial fork from pypi, so this check shouldn't be required any longer. Note that distributions are also free to pick up our patches for pyserial and integrate them into their distro packages, which makes this check potentially wrong anyway. Signed-off-by: Rouven Czerwinski <[email protected]> (cherry picked from commit 1e9ca51)
1 parent b128db2 commit c9a22b1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

labgrid/driver/serialdriver.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
import warnings
32

43
import attr
54
from packaging import version
@@ -27,12 +26,6 @@ class SerialDriver(ConsoleExpectMixin, Driver, ConsoleProtocol):
2726
bindings = {"port": "SerialPort", }
2827
else:
2928
bindings = {"port": {"SerialPort", "NetworkSerialPort"}, }
30-
if version.parse(serial.__version__) != version.Version('3.4.0.1'):
31-
message = ("The installed pyserial version does not contain important RFC2217 fixes.\n"
32-
"You can install the labgrid fork via:\n"
33-
"pip uninstall pyserial\n"
34-
"pip install https://github.com/labgrid-project/pyserial/archive/v3.4.0.1.zip#egg=pyserial\n")
35-
warnings.warn(message)
3629

3730
txdelay = attr.ib(default=0.0, validator=attr.validators.instance_of(float))
3831
timeout = attr.ib(default=3.0, validator=attr.validators.instance_of(float))

0 commit comments

Comments
 (0)