diff options
| author | Michael Biebl <biebl@debian.org> | 2018-06-04 00:07:45 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-06-04 00:07:45 +0200 |
| commit | 04bc9e1cd3544445d883ad29ea108c1645c8e7b7 (patch) | |
| tree | d10c354b1b980ca8a7b9e48ec9019e8ed88bde2b /examples/python/gi/show-wifi-networks.py | |
| parent | ee9c73a923909e23a649407be77e25235d769e25 (diff) | |
New upstream version 1.11.4 upstream/1.11.4
Diffstat (limited to 'examples/python/gi/show-wifi-networks.py')
| -rwxr-xr-x | examples/python/gi/show-wifi-networks.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/python/gi/show-wifi-networks.py b/examples/python/gi/show-wifi-networks.py index db49b555..4c7a126f 100755 --- a/examples/python/gi/show-wifi-networks.py +++ b/examples/python/gi/show-wifi-networks.py @@ -49,8 +49,8 @@ def print_device_info(device): if active_ap is not None: ssid = ssid_to_utf8(active_ap) info = "Device: %s | Driver: %s | Active AP: %s" % (dev.get_iface(), dev.get_driver(), ssid) - print info - print '=' * len(info) + print(info) + print('=' * len(info)) def mode_to_string(mode): if mode == getattr(NM, '80211Mode').INFRA: @@ -114,16 +114,16 @@ def print_ap_info(ap): flags = ap.get_flags() wpa_flags = ap.get_wpa_flags() rsn_flags = ap.get_rsn_flags() - print "SSID: %s" % (ssid_to_utf8(ap)) - print "BSSID: %s" % (ap.get_bssid()) - print "Frequency: %s" % (frequency) - print "Channel: %s" % (NM.utils_wifi_freq_to_channel(frequency)) - print "Mode: %s" % (mode_to_string(ap.get_mode())) - print "Flags: %s" % (flags_to_string(flags)) - print "WPA flags: %s" % (security_flags_to_string(wpa_flags)) - print "RSN flags: %s" % (security_flags_to_string(rsn_flags)) - print "Security: %s" % (flags_to_security(flags, wpa_flags, rsn_flags)) - print "Strength: %s %s%%" % (NM.utils_wifi_strength_bars(strength), strength) + print("SSID: %s" % (ssid_to_utf8(ap))) + print("BSSID: %s" % (ap.get_bssid())) + print("Frequency: %s" % (frequency)) + print("Channel: %s" % (NM.utils_wifi_freq_to_channel(frequency))) + print("Mode: %s" % (mode_to_string(ap.get_mode()))) + print("Flags: %s" % (flags_to_string(flags))) + print("WPA flags: %s" % (security_flags_to_string(wpa_flags))) + print("RSN flags: %s" % (security_flags_to_string(rsn_flags))) + print("Security: %s" % (flags_to_security(flags, wpa_flags, rsn_flags))) + print("Strength: %s %s%%" % (NM.utils_wifi_strength_bars(strength), strength)) print if __name__ == "__main__": |