From f0fc35c7c19aeeff8416a9c58ac596ed65e44f1c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 3 Sep 2016 15:32:30 -0400 Subject: [PATCH] Simplify init in Result --- wolframalpha/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wolframalpha/__init__.py b/wolframalpha/__init__.py index 8f0fc0d..4057180 100644 --- a/wolframalpha/__init__.py +++ b/wolframalpha/__init__.py @@ -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