Skip to content

Commit 81acb3b

Browse files
committed
isort
1 parent 6884496 commit 81acb3b

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

pymodbus_repl/lib/completer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
"""Command Completion for pymodbus REPL. """
1+
"""Command Completion for pymodbus REPL."""
22
from prompt_toolkit.application.current import get_app
33

44
# pylint: disable=missing-type-doc
55
from prompt_toolkit.completion import Completer, Completion
66
from prompt_toolkit.filters import Condition
77

8-
from pymodbus_repl.lib.helper import get_commands, Command
8+
from pymodbus_repl.lib.helper import Command, get_commands
99

1010

1111
@Condition

pymodbus_repl/lib/helper.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from prompt_toolkit.formatted_text import HTML, PygmentsTokens
1414
from prompt_toolkit.styles import Style
1515
from pygments.lexers.data import JsonLexer
16-
from pymodbus.payload import BinaryPayloadDecoder, Endian
16+
from pymodbus.constants import Endian
17+
from pymodbus.payload import BinaryPayloadDecoder
1718

1819

1920
predicate = inspect.isfunction

pymodbus_repl/lib/reactive.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
ModbusSparseDataBlock,
2828
)
2929
from pymodbus.device import ModbusDeviceIdentification
30+
from pymodbus.framer import (
31+
FramerAscii,
32+
FramerRTU,
33+
FramerSocket,
34+
FramerTLS,
35+
)
3036
from pymodbus.logging import Log
3137
from pymodbus.pdu import ExceptionResponse
3238
from pymodbus.server import (
@@ -35,12 +41,6 @@
3541
ModbusTlsServer,
3642
ModbusUdpServer,
3743
)
38-
from pymodbus.framer import (
39-
FramerAscii,
40-
FramerRTU,
41-
FramerSocket,
42-
FramerTLS,
43-
)
4444

4545

4646
SERVER_MAPPER = {

0 commit comments

Comments
 (0)