Simplify init in Result
This commit is contained in:
parent
5f86e5a1d6
commit
f0fc35c7c1
|
@ -174,9 +174,8 @@ class Result(ErrorHandler, Document):
|
|||
)
|
||||
|
||||
def __init__(self, stream):
|
||||
super(Result, self).__init__()
|
||||
doc = xmltodict.parse(stream, dict_constructor=dict)['queryresult']
|
||||
self.update(doc)
|
||||
super(Result, self).__init__(doc)
|
||||
self._handle_error(self)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue
Block a user