File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- """Command Completion for pymodbus REPL. """
1
+ """Command Completion for pymodbus REPL."""
2
2
from prompt_toolkit .application .current import get_app
3
3
4
4
# pylint: disable=missing-type-doc
5
5
from prompt_toolkit .completion import Completer , Completion
6
6
from prompt_toolkit .filters import Condition
7
7
8
- from pymodbus_repl .lib .helper import get_commands , Command
8
+ from pymodbus_repl .lib .helper import Command , get_commands
9
9
10
10
11
11
@Condition
Original file line number Diff line number Diff line change 13
13
from prompt_toolkit .formatted_text import HTML , PygmentsTokens
14
14
from prompt_toolkit .styles import Style
15
15
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
17
18
18
19
19
20
predicate = inspect .isfunction
Original file line number Diff line number Diff line change 27
27
ModbusSparseDataBlock ,
28
28
)
29
29
from pymodbus .device import ModbusDeviceIdentification
30
+ from pymodbus .framer import (
31
+ FramerAscii ,
32
+ FramerRTU ,
33
+ FramerSocket ,
34
+ FramerTLS ,
35
+ )
30
36
from pymodbus .logging import Log
31
37
from pymodbus .pdu import ExceptionResponse
32
38
from pymodbus .server import (
35
41
ModbusTlsServer ,
36
42
ModbusUdpServer ,
37
43
)
38
- from pymodbus .framer import (
39
- FramerAscii ,
40
- FramerRTU ,
41
- FramerSocket ,
42
- FramerTLS ,
43
- )
44
44
45
45
46
46
SERVER_MAPPER = {
You can’t perform that action at this time.
0 commit comments