Skip to content

Commit

Permalink
Change fstring to format
Browse files Browse the repository at this point in the history
  • Loading branch information
seankingyang committed Apr 12, 2024
1 parent b7fd031 commit f92e773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/resource/bin/WIFI_phy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_phy_interface_mapping(phy_interface):
"""
phy_interface_mapping = {}
for phy, interface in phy_interface:
cmd = f"iw {phy} info"
cmd = "iw {} info".format(phy)
phy_info_output = check_output(cmd, shell=True,
universal_newlines=True)
bands = parse_phy_info_output(phy_info_output)
Expand All @@ -98,9 +98,9 @@ def main():
# Print interface summary with detailed information on separate lines
for interface, content in phy_interface_mapping.items():
for freq, ret in content["FREQ_Supported"].items():
print(f"{interface}_{freq}: {ret}")
print("{}_{}: {}".format(interface, freq, ret))
for sta, ret in content["STA_Supported"].items():
print(f"{interface}_{sta.lower()}: {ret}")
print("{}_{}: {}".format(interface, sta.lower(), ret))


if __name__ == "__main__":
Expand Down

0 comments on commit f92e773

Please sign in to comment.