python: make dbus, gi examples, and debug-helper.py python3 ready

https://bugzilla.gnome.org/show_bug.cgi?id=791121
This commit is contained in:
Yifan J
2017-12-02 12:44:50 +08:00
committed by Thomas Haller
parent 5e239d2c04
commit 797d9c4403
25 changed files with 104 additions and 104 deletions

View File

@@ -69,9 +69,9 @@ for d in devices:
# and print them out
if state == 100 : # activated
print "Device %s is activated" % name
print("Device %s is activated" % name)
else:
print "Device %s is not activated (state=%s)" % (name, device_states[state])
print("Device %s is not activated (state=%s)" % (name, device_states[state]))
# Get active connection state
@@ -91,4 +91,4 @@ for a in active:
con_details = con_iface.GetSettings()
con_name = con_details['connection']['id']
print "Connection '%s' is %s" % (con_name, connectivity_states[state].lower())
print("Connection '%s' is %s" % (con_name, connectivity_states[state].lower()))