X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fenable-tethering;h=13e5a18c4d345350c5972044ecf90035fa2ea744;hb=132afd1b759135225e1582fce0125759b8580d9e;hp=cbcd4e72651af319150f61a16c86a9907456ee90;hpb=2c6952fef43301fbc757f4939ca6f377ca982493;p=platform%2Fupstream%2Fconnman.git diff --git a/test/enable-tethering b/test/enable-tethering index cbcd4e7..13e5a18 100755 --- a/test/enable-tethering +++ b/test/enable-tethering @@ -4,10 +4,10 @@ import sys import dbus if (len(sys.argv) >= 3 and len(sys.argv) != 4 and sys.argv[1] == "wifi"): - print "Usage: %s wifi [SSID] [passphrase]" % (sys.argv[0]) + print("Usage: %s wifi [SSID] [passphrase]" % (sys.argv[0])) sys.exit(1) elif (len(sys.argv) < 2): - print "Usage: %s type" % (sys.argv[0]) + print("Usage: %s type" % (sys.argv[0])) sys.exit(1) bus = dbus.SystemBus() @@ -21,7 +21,7 @@ def technology_enable_tethering(path, tech_type, ssid, psk): properties = tech.GetProperties() - for key in properties.keys(): + for key in list(properties.keys()): if key in ["Type"]: if properties[key] == tech_type: if len(ssid) > 0: @@ -30,7 +30,7 @@ def technology_enable_tethering(path, tech_type, ssid, psk): if len(psk) > 0: tech.SetProperty("TetheringPassphrase", psk) - print "Enabling %s tethering" % tech_type + print("Enabling %s tethering" % tech_type) tech.SetProperty("Tethering", dbus.Boolean(1)) return tech_type @@ -51,4 +51,4 @@ for path,_ in technologies: break; if tech == None: - print "Failed to enable %s tethering" % (sys.argv[1]) + print("Failed to enable %s tethering" % (sys.argv[1]))