diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-25 16:51:54 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-25 16:51:54 +0300 |
commit | b016ac1f696655344ecd68020b7c97c7ff18907c (patch) | |
tree | 766e733ec70fdc0ca5b19ff626a666ad3d6abdff /gsxws | |
parent | 67b970b86dd259e5fed2846fc30d8bb29648adfe (diff) | |
download | py-gsxws-b016ac1f696655344ecd68020b7c97c7ff18907c.tar.gz py-gsxws-b016ac1f696655344ecd68020b7c97c7ff18907c.tar.bz2 py-gsxws-b016ac1f696655344ecd68020b7c97c7ff18907c.zip |
Fixed FMiP detection
Diffstat (limited to 'gsxws')
-rw-r--r-- | gsxws/products.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gsxws/products.py b/gsxws/products.py index d1b5b01..b268457 100644 --- a/gsxws/products.py +++ b/gsxws/products.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- - """ https://gsxwsut.apple.com/apidocs/ut/html/WSAPIChangeLog.html?user=asp """ + import re import urllib @@ -179,7 +179,7 @@ class Product(object): """ Returns True if FMiP status is active, False otherwise """ - return self.fmip_status.startswith('Find My iPhone is active.') + return 'Find My iPhone is active' in self.fmip_status def is_unlocked(self, ad=None): """ |