Simplify init in Result

This commit is contained in:
Jason R. Coombs 2016-09-03 15:32:30 -04:00
parent 5f86e5a1d6
commit f0fc35c7c1

View File

@ -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