Use requests lib for openurl

This commit is contained in:
Ruud committed 2014-01-10 14:04:16 +01:00
1 parent 91f3cda995
commit c2568432e7
25 files changed
+86 -123

No files matched your search

@@ -74,9 +74,9 @@ class Pushbullet(Notification):
}
if cache:
return self.getJsonData(self.url % method, headers = headers, params = kwargs)
return self.getJsonData(self.url % method, headers = headers, data = kwargs)
else:
data = self.urlopen(self.url % method, headers = headers, params = kwargs)
data = self.urlopen(self.url % method, headers = headers, data = kwargs)
return json.loads(data)
except Exception, ex: