We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a028487 commit 6b3dbc3Copy full SHA for 6b3dbc3
pymodbus/repl/server/main.py
@@ -3,7 +3,6 @@
3
Copyright (c) 2020 by RiptideIO
4
All rights reserved.
5
"""
6
-import sys
7
import logging
8
import asyncio
9
import json
@@ -17,10 +16,7 @@
17
16
from pymodbus.server.reactive.default_config import DEFUALT_CONFIG
18
from pymodbus.repl.server.cli import run_repl
19
20
-if sys.version_info > (3, 7):
21
- CANCELLED_ERROR = asyncio.exceptions.CancelledError
22
-else:
23
- CANCELLED_ERROR = asyncio.CancelledError # pylint: disable=invalid-name
+CANCELLED_ERROR = asyncio.exceptions.CancelledError
24
25
26
@click.group("ReactiveModbusServer")
0 commit comments