From ab12ee7ee7a6c83a2cdea9606a9e923bead04950 Mon Sep 17 00:00:00 2001 From: stanley31huang Date: Tue, 8 Oct 2024 16:10:49 +0800 Subject: [PATCH] fix pep8 error fix pep8 error --- providers/base/bin/wwan_tests.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/providers/base/bin/wwan_tests.py b/providers/base/bin/wwan_tests.py index 92536ae6db..74d25fdd9c 100755 --- a/providers/base/bin/wwan_tests.py +++ b/providers/base/bin/wwan_tests.py @@ -456,33 +456,25 @@ def invoked(self): class Resources: - def register_arguments(self): + def invoked(self): parser = argparse.ArgumentParser() parser.add_argument( "--use-cli", action="store_true", help="Use mmcli for all calls rather than dbus", ) - return parser.parse_args(sys.argv[2:]) - - def invoked(self): - args = self.register_arguments() + args = parser.parse_args(sys.argv[2:]) if args.use_cli: mm = MMCLI() else: mm = MMDbus() - for m in mm.get_modem_ids(): print("mm_id: {}".format(m)) print("hw_id: {}".format(mm.get_equipment_id(m))) print("manufacturer: {}".format(mm.get_manufacturer(m))) print("model: {}".format(mm.get_model_name(m))) - print( - "firmware_revision: {}".format(mm.get_firmware_revision(m)) - ) - print( - "hardware_revision: {}".format(mm.get_hardware_revision(m)) - ) + print("firmware_revision: {}".format(mm.get_firmware_revision(m))) + print("hardware_revision: {}".format(mm.get_hardware_revision(m))) print()