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:
@@ -29,8 +29,8 @@ if __name__ == "__main__":
|
||||
client = NM.Client.new(None)
|
||||
acons = client.get_active_connections()
|
||||
for ac in acons:
|
||||
print "%s (%s) - %s" % (ac.get_id(), ac.get_uuid(), ac.get_connection_type())
|
||||
print("%s (%s) - %s" % (ac.get_id(), ac.get_uuid(), ac.get_connection_type()))
|
||||
if len(acons) == 0:
|
||||
print "No active connections"
|
||||
print("No active connections")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user