From ff58ac2f87c421a4cefaf001b8671198e700fbd2 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 11 Jan 2023 21:05:36 +0100 Subject: [PATCH] pylint error in test_repl. --- pymodbus/repl/client/main.py | 6 +++--- test/test_repl_client.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pymodbus/repl/client/main.py b/pymodbus/repl/client/main.py index 1a44542be..dc1f803c9 100644 --- a/pymodbus/repl/client/main.py +++ b/pymodbus/repl/client/main.py @@ -124,7 +124,7 @@ def convert(self, value, param, ctx): return None -def _process_args(args: list, string: bool = True): +def process_args(args: list, string: bool = True): """Internal function to parse arguments provided on command line. :param args: Array of argument values @@ -226,7 +226,7 @@ def _(event): text = text.strip().split() cmd = text[0].split(".")[1] args = text[1:] - kwargs, execute = _process_args(args, string=False) + kwargs, execute = process_args(args, string=False) if execute: if text[0] in CLIENT_ATTRIBUTES: result = Result(getattr(client, cmd)) @@ -242,7 +242,7 @@ def _(event): result.raw() if words[0] == "result.decode": args = words[1:] - kwargs, execute = _process_args(args) + kwargs, execute = process_args(args) if execute: result.decode(**kwargs) except KeyboardInterrupt: diff --git a/test/test_repl_client.py b/test/test_repl_client.py index b4b441933..6d2224e5d 100755 --- a/test/test_repl_client.py +++ b/test/test_repl_client.py @@ -1,5 +1,5 @@ """Test client sync.""" -from pymodbus.repl.client.main import _process_args as process_args +from pymodbus.repl.client.main import process_args from pymodbus.server.reactive.default_config import DEFAULT_CONFIG @@ -10,7 +10,7 @@ def test_repl_default_config(): def test_repl_client_process_args(): - """Test argument processing in repl.client.main (_process_args function).""" + """Test argument processing in repl.client.main ( process_args function).""" resp = process_args(["address=11"], False) assert resp == ({"address": 11}, True)