diff --git a/pyicloud/cmdline.py b/pyicloud/cmdline.py index 940fc97..b4c17d7 100755 --- a/pyicloud/cmdline.py +++ b/pyicloud/cmdline.py @@ -181,20 +181,20 @@ def main(): contents = dev.content if command_line.longlist: - print "-"*30 - print contents["name"] + print("-"*30) + print(contents["name"]) for x in contents: - print "%20s - %s" % (x, contents[x]) + print("%20s - %s" % (x, contents[x])) elif command_line.list: # print "\n" - print "-"*30 - print "Name - %s" % contents["name"] - print "Display Name - %s" % contents["deviceDisplayName"] - print "Location - %s" % contents["location"] - print "Battery Level - %s" % contents["batteryLevel"] - print "Battery Status- %s" % contents["batteryStatus"] - print "Device Class - %s" % contents["deviceClass"] - print "Device Model - %s" % contents["deviceModel"] + print("-"*30) + print("Name - %s" % contents["name"]) + print("Display Name - %s" % contents["deviceDisplayName"]) + print("Location - %s" % contents["location"]) + print("Battery Level - %s" % contents["batteryLevel"]) + print("Battery Status- %s" % contents["batteryStatus"]) + print("Device Class - %s" % contents["deviceClass"]) + print("Device Model - %s" % contents["deviceModel"]) # Play a Sound on a device if command_line.sound: