Skip to content

Commit 6b3dbc3

Browse files
authored
Minimum python version is 3.8. (#921)
1 parent a028487 commit 6b3dbc3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pymodbus/repl/server/main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Copyright (c) 2020 by RiptideIO
44
All rights reserved.
55
"""
6-
import sys
76
import logging
87
import asyncio
98
import json
@@ -17,10 +16,7 @@
1716
from pymodbus.server.reactive.default_config import DEFUALT_CONFIG
1817
from pymodbus.repl.server.cli import run_repl
1918

20-
if sys.version_info > (3, 7):
21-
CANCELLED_ERROR = asyncio.exceptions.CancelledError
22-
else:
23-
CANCELLED_ERROR = asyncio.CancelledError # pylint: disable=invalid-name
19+
CANCELLED_ERROR = asyncio.exceptions.CancelledError
2420

2521

2622
@click.group("ReactiveModbusServer")

0 commit comments

Comments
 (0)