Simplify init in Result
This commit is contained in:
1 parent
5f86e5a1d6
commit
f0fc35c7c1
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user