Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit 3f44bc2

Browse files
committed
Fixed TypeError: 'dict_keys' object does not support indexing #PAYAB-2371
1 parent 3a83adf commit 3f44bc2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mws/mws.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def __init__(self, xml, rootkey=None):
9191
self.original = xml
9292
self._rootkey = rootkey
9393
self._mydict = utils.xml2dict().fromstring(remove_namespace(xml))
94-
self._response_dict = self._mydict.get(self._mydict.keys()[0],
95-
self._mydict)
94+
self._response_dict = self._mydict.get([*self._mydict][0], self._mydict)
9695

9796
@property
9897
def parsed(self):

0 commit comments

Comments
 (0)