aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgsxws.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gsxws.py b/gsxws.py
index 52a8ce6..a913ebe 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -161,10 +161,10 @@ class GsxObject(object):
v = base64.b64decode(v)
if isinstance(v, basestring):
- # convert dates to native Python
+ # convert dates to native Python types
if re.search('^\d{2}/\d{2}/\d{2}$', v):
m, d, y = v.split('/')
- v = date(2000+int(y), int(m), int(d)).isoformat()
+ v = date(2000+int(y), int(m), int(d))
# strip currency prefix and munge into float
if re.search('Price$', k):
@@ -752,6 +752,7 @@ class Product(GsxObject):
result = self.submit("WarrantyStatus", dt, "warrantyDetailInfo")
return self._process(result)
+
def get_activation(self):
"""
The Fetch iOS Activation Details API is used to