diff --git a/pyicloud/cmdline.py b/pyicloud/cmdline.py index 940fc970..8104fc70 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 60a98c01..01900c6c 100755 --- a/pyicloud/services/findmyiphone.py +++ b/pyicloud/services/findmyiphone.py @@ -40,7 +40,7 @@ def refresh_client(self): 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,