Diff between bc75f38cb3c6c047f4615a59dbac6c49946bd07c and bfc07e509d57b3ec572a74b9a40cbe0015c4c6aa

Changed Files

File Additions Deletions Status
test/get-managed-objects +5 -3 modified

Full Patch

diff --git a/test/get-managed-objects b/test/get-managed-objects
index 5bbbe7d..3156f65 100755
--- a/test/get-managed-objects
+++ b/test/get-managed-objects
@@ -1,5 +1,7 @@
 #!/usr/bin/python
 
+from __future__ import absolute_import, print_function, unicode_literals
+
 import dbus
 
 bus = dbus.SystemBus()
@@ -10,7 +12,7 @@ manager = dbus.Interface(bus.get_object("org.bluez", "/"),
 objects = manager.GetManagedObjects()
 
 for path in objects.keys():
-	print "[ %s ]" % (path)
+	print("[ %s ]" % (path))
 
 	interfaces = objects[path]
 
@@ -19,9 +21,9 @@ for path in objects.keys():
 					"org.freedesktop.DBus.Properties"]:
 			continue
 
-		print "    %s" % (interface)
+		print("    %s" % (interface))
 
 		properties = interfaces[interface]
 
 		for key in properties.keys():
-			print "      %s = %s" % (key, properties[key])
+			print("      %s = %s" % (key, properties[key]))