aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gsxws/products.py2
-rw-r--r--gsxws/xmltodict.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index 96352f1..21c59d8 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -82,7 +82,7 @@ class Product(GsxObject):
def fetch_image(self):
"""
- >>> Product('DGKFL06JDHJP').warranty().fetch_image()
+ >>> Product('DGKFL06JDHJP').fetch_image()
"""
if not hasattr(self, "imageURL"):
raise GsxError("No URL to fetch product image")
diff --git a/gsxws/xmltodict.py b/gsxws/xmltodict.py
index b8973ae..25e0c6e 100644
--- a/gsxws/xmltodict.py
+++ b/gsxws/xmltodict.py
@@ -146,7 +146,7 @@ def _ConvertXmlToDictRecurse(node, dictclass):
for child in node:
# recursively add the element's children
newitem = _ConvertXmlToDictRecurse(child, dictclass)
- if nodedict.has_key(child.tag):
+ if child.tag in nodedict.keys():
# found duplicate tag, force a list
if type(nodedict[child.tag]) is type([]):
# append to existing list