Skip to content

Commit d07f1c8

Browse files
authored
pylint error in test_repl. (#1252)
1 parent 766c5be commit d07f1c8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pymodbus/repl/client/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def convert(self, value, param, ctx):
124124
return None
125125

126126

127-
def _process_args(args: list, string: bool = True):
127+
def process_args(args: list, string: bool = True):
128128
"""Internal function to parse arguments provided on command line.
129129
130130
:param args: Array of argument values
@@ -226,7 +226,7 @@ def _(event):
226226
text = text.strip().split()
227227
cmd = text[0].split(".")[1]
228228
args = text[1:]
229-
kwargs, execute = _process_args(args, string=False)
229+
kwargs, execute = process_args(args, string=False)
230230
if execute:
231231
if text[0] in CLIENT_ATTRIBUTES:
232232
result = Result(getattr(client, cmd))
@@ -242,7 +242,7 @@ def _(event):
242242
result.raw()
243243
if words[0] == "result.decode":
244244
args = words[1:]
245-
kwargs, execute = _process_args(args)
245+
kwargs, execute = process_args(args)
246246
if execute:
247247
result.decode(**kwargs)
248248
except KeyboardInterrupt:

test/test_repl_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Test client sync."""
2-
from pymodbus.repl.client.main import _process_args as process_args
2+
from pymodbus.repl.client.main import process_args
33
from pymodbus.server.reactive.default_config import DEFAULT_CONFIG
44

55

@@ -10,7 +10,7 @@ def test_repl_default_config():
1010

1111

1212
def test_repl_client_process_args():
13-
"""Test argument processing in repl.client.main (_process_args function)."""
13+
"""Test argument processing in repl.client.main ( process_args function)."""
1414
resp = process_args(["address=11"], False)
1515
assert resp == ({"address": 11}, True)
1616

0 commit comments

Comments
 (0)