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

@@ -38,7 +38,7 @@ s_con = dbus.Dictionary({
addr1 = dbus.Dictionary({
'address': '10.1.2.3',
'prefix': dbus.UInt32(8L)})
'prefix': dbus.UInt32(8)})
s_ip4 = dbus.Dictionary({
'address-data': dbus.Array([addr1], signature=dbus.Signature('a{sv}')),
'gateway': '10.1.2.1',
@@ -53,7 +53,7 @@ con = dbus.Dictionary({
'ipv6': s_ip6})
print "Creating connection:", s_con['id'], "-", s_con['uuid']
print("Creating connection:", s_con['id'], "-", s_con['uuid'])
bus = dbus.SystemBus()
proxy = bus.get_object("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager/Settings")