From f5535809bebc6cc343475704832c8fd8674d2d06 Mon Sep 17 00:00:00 2001 From: Stefano Date: Tue, 23 Jul 2013 20:22:42 +0200 Subject: Fixed PEP 8 violations in Accounts --- module/plugins/accounts/HellshareCz.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'module/plugins/accounts/HellshareCz.py') diff --git a/module/plugins/accounts/HellshareCz.py b/module/plugins/accounts/HellshareCz.py index c7a918dec..4718ade99 100644 --- a/module/plugins/accounts/HellshareCz.py +++ b/module/plugins/accounts/HellshareCz.py @@ -17,10 +17,12 @@ @author: zoidberg """ -from module.plugins.Account import Account import re import time +from module.plugins.Account import Account + + class HellshareCz(Account): __name__ = "HellshareCz" __version__ = "0.14" @@ -49,7 +51,7 @@ class HellshareCz(Account): vt = [int(x) for x in credit.split('.')[:2]] lt = time.localtime() year = lt.tm_year + int(vt[1] < lt.tm_mon or (vt[1] == lt.tm_mon and vt[0] < lt.tm_mday)) - validuntil = time.mktime(time.strptime("%s%d 23:59:59" % (credit,year), "%d.%m.%Y %H:%M:%S")) + validuntil = time.mktime(time.strptime("%s%d 23:59:59" % (credit, year), "%d.%m.%Y %H:%M:%S")) trafficleft = -1 else: #Traffic-based account @@ -77,11 +79,11 @@ class HellshareCz(Account): return html = req.load('http://www.hellshare.com/login?do=loginForm-submit', post={ - "login": "Log in", - "password": data["password"], - "username": user, - "perm_login": "on" - }) + "login": "Log in", + "password": data["password"], + "username": user, + "perm_login": "on" + }) if "

You input a wrong user name or wrong password

" in html: - self.wrongPassword() \ No newline at end of file + self.wrongPassword() -- cgit v1.2.3