diff --git a/pyicloud/cmdline.py b/pyicloud/cmdline.py index 940fc97..8104fc7 100755 --- a/pyicloud/cmdline.py +++ b/pyicloud/cmdline.py @@ -186,7 +186,6 @@ def main(): for x in contents: 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"] diff --git a/pyicloud/services/findmyiphone.py b/pyicloud/services/findmyiphone.py index 60a98c0..01900c6 100755 --- a/pyicloud/services/findmyiphone.py +++ b/pyicloud/services/findmyiphone.py @@ -40,7 +40,7 @@ class FindMyiPhoneServiceManager(object): for device_info in self.response['content']: device_id = device_info['id'] - if not device_id in self._devices: + if device_id not in self._devices: self._devices[device_id] = AppleDevice( device_info, self.session,