Diff between db822878f371c049b231212d348c45ebe60f7ddf and 2022997b202691d37c64a86e397b679495ed5fcc

Changed Files

File Additions Deletions Status
test/pbap-client +9 -9 modified

Full Patch

diff --git a/test/pbap-client b/test/pbap-client
index 1673844..c02833b 100755
--- a/test/pbap-client
+++ b/test/pbap-client
@@ -53,7 +53,7 @@ class PbapClient:
 		if req == None:
 			return
 		self.transfers -= 1
-		print "Transfer %s complete" % path
+		print("Transfer %s complete" % path)
 		try:
 			f = open(req.filename, "r")
 			os.remove(req.filename)
@@ -122,7 +122,7 @@ if  __name__ == '__main__':
 		print("Usage: %s <device>" % (sys.argv[0]))
 		sys.exit(1)
 
-	print "Creating Session"
+	print("Creating Session")
 	session_path = client.CreateSession(sys.argv[1], { "Target": "PBAP" })
 
 	pbap_client = PbapClient(session_path)
@@ -137,29 +137,29 @@ if  __name__ == '__main__':
 	def test_paths(paths):
 		if len(paths) == 0:
 			print
-			print "FINISHED"
+			print("FINISHED")
 			mainloop.quit()
 			return
 
 		path = paths[0]
 
-		print "\n--- Select Phonebook %s ---\n" % (path)
+		print("\n--- Select Phonebook %s ---\n" % (path))
 		pbap_client.interface().Select("int", path)
 
-		print "\n--- GetSize ---\n"
+		print("\n--- GetSize ---\n")
 		ret = pbap_client.interface().GetSize()
-		print "Size = %d\n" % (ret)
+		print("Size = %d\n" % (ret))
 
-		print "\n--- List vCard ---\n"
+		print("\n--- List vCard ---\n")
 		try:
 			ret = pbap_client.interface().List(dbus.Dictionary())
 		except:
 			ret = []
 
 		params = dbus.Dictionary({ "Format" : "vcard30",
-					"Fields" : [ "VERSION", "FN", "TEL"] })
+						"Fields" : ["PHOTO"] })
 		for item in ret:
-			print "%s : %s" % (item[0], item[1])
+			print("%s : %s" % (item[0], item[1]))
 			pbap_client.pull(item[0], params,
 					lambda x: process_result(x, None))