diff options
author | Filipp Lepalaan <f@230.to> | 2013-06-09 12:47:32 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-06-09 12:47:32 +0300 |
commit | 5c1321ac20eb7ea8ecb55ba4e7bfa1a974851dcc (patch) | |
tree | 17b02769c681cf85d873b8ae3777fb935148f8b1 /gsxws/xmltodict.py | |
parent | 1f4ac1d6144dd79606942a742530845658309463 (diff) | |
download | py-gsxws-5c1321ac20eb7ea8ecb55ba4e7bfa1a974851dcc.tar.gz py-gsxws-5c1321ac20eb7ea8ecb55ba4e7bfa1a974851dcc.tar.bz2 py-gsxws-5c1321ac20eb7ea8ecb55ba4e7bfa1a974851dcc.zip |
A few small fixes
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 |