mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
tools/ios_convert: use join rather than manually looping
This commit is contained in:
parent
de2c808970
commit
202f65be69
@ -144,13 +144,7 @@ def write_network(network, root_ca_path):
|
||||
name + '.conf'
|
||||
output += "[Hotspot]\n"
|
||||
output += "NAIRealmNames="
|
||||
|
||||
for i in range(len(network.nai_realms)):
|
||||
output += network.nai_realms[i]
|
||||
|
||||
if i < len(network.nai_realms) - 1:
|
||||
output += ','
|
||||
|
||||
output += ','.join(network.nai_realms)
|
||||
output += "\n"
|
||||
output += "Name=%s\n" % name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user