about summary refs log tree commit diff
path: root/examples/python/dbus/wifi-active-ap.py
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-07-03 23:54:48 +0200
committerMichael Biebl <biebl@debian.org>2018-07-03 23:54:48 +0200
commit54de7f04d1fac5f29fd54ec4120ba2fc4f9b5714 (patch)
tree87729385ff8de744dc44d0b4cc75916494b2fd38 /examples/python/dbus/wifi-active-ap.py
parent680d3db45106e7a18665a366e1b57e58cef61506 (diff)
parent329b15110c4b183d7a47552abe3a6a6ff933e817 (diff)
Merge branch 'experimental'
Diffstat (limited to 'examples/python/dbus/wifi-active-ap.py')
-rwxr-xr-xexamples/python/dbus/wifi-active-ap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/python/dbus/wifi-active-ap.py b/examples/python/dbus/wifi-active-ap.py
index 3b17c6f1..c0ed6710 100755
--- a/examples/python/dbus/wifi-active-ap.py
+++ b/examples/python/dbus/wifi-active-ap.py
@@ -32,7 +32,7 @@ proxy = bus.get_object(service_name, "/org/freedesktop/NetworkManager/Settings")
 settings = dbus.Interface(proxy, "org.freedesktop.NetworkManager.Settings")
 
 if len(sys.argv) != 2:
-    print "Usage: %s <ifname>" % sys.argv[0]
+    print("Usage: %s <ifname>" % sys.argv[0])
     sys.exit(0)
 
 # Get the device object path based on interface name
@@ -46,7 +46,7 @@ proxy = bus.get_object(service_name, devpath)
 props = dbus.Interface(proxy, "org.freedesktop.DBus.Properties")
 active_ap_path = props.Get("org.freedesktop.NetworkManager.Device.Wireless", "ActiveAccessPoint")
 if active_ap_path == "/":
-    print "%s is not currently associated" % sys.argv[1]
+    print("%s is not currently associated" % sys.argv[1])
     sys.exit(0)
 
 # Get the active access point's SSID and BSSID
@@ -60,7 +60,7 @@ ssid = ""
 for c in raw_ssid:
     ssid = ssid + chr(c)
 
-print "%s is associated to '%s' (%s)" % (sys.argv[1], ssid, bssid)
+print("%s is associated to '%s' (%s)" % (sys.argv[1], ssid, bssid))
 
 sys.exit(0)