Skip to content

Commit

Permalink
fix pep8 error
Browse files Browse the repository at this point in the history
fix pep8 error
  • Loading branch information
stanley31huang committed Oct 8, 2024
1 parent afa8d64 commit ab12ee7
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions providers/base/bin/wwan_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit ab12ee7

Please sign in to comment.