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:
@@ -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()))
|
||||
|
Reference in New Issue
Block a user