From 5deded62d94c04be64d34f6b67d07803eea9b6bf Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 20 Dec 2015 18:43:15 +0100 Subject: Spare code cosmetics --- module/plugins/accounts/RapiduNet.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'module/plugins/accounts/RapiduNet.py') diff --git a/module/plugins/accounts/RapiduNet.py b/module/plugins/accounts/RapiduNet.py index 985dd9b16..e9d16977d 100644 --- a/module/plugins/accounts/RapiduNet.py +++ b/module/plugins/accounts/RapiduNet.py @@ -53,14 +53,15 @@ class RapiduNet(Account): post={'_go' : "", 'lang': "en"}) - jso = json.loads(self.load("https://rapidu.net/ajax.php", - get={'a': "getUserLogin"}, - post={'_go' : "", - 'login' : user, - 'pass' : password, - 'remember': "1"})) + html = self.load("https://rapidu.net/ajax.php", + get={'a': "getUserLogin"}, + post={'_go' : "", + 'login' : user, + 'pass' : password, + 'remember': "1"}) + json_data = json.loads(html) - self.log_debug(jso) + self.log_debug(json_data) - if jso['message'] != "success": + if json_data['message'] != "success": self.fail_login() -- cgit v1.2.3