diff options
Diffstat (limited to 'gsxws/xmltodict.py')
-rw-r--r-- | gsxws/xmltodict.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |