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 8f56c0e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions providers/base/bin/wwan_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,17 +456,14 @@ 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:
Expand All @@ -477,12 +474,8 @@ def invoked(self):
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 8f56c0e

Please sign in to comment.