summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilesMailRu.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-23 20:22:42 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-23 20:22:42 +0200
commitf5535809bebc6cc343475704832c8fd8674d2d06 (patch)
treec59bc1e6d71c04f5545ea262056c0c5be1bd8910 /module/plugins/accounts/FilesMailRu.py
parentFixed PEP 8 violations in Hosters (diff)
downloadpyload-f5535809bebc6cc343475704832c8fd8674d2d06.tar.xz
Fixed PEP 8 violations in Accounts
Diffstat (limited to 'module/plugins/accounts/FilesMailRu.py')
-rw-r--r--module/plugins/accounts/FilesMailRu.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/accounts/FilesMailRu.py b/module/plugins/accounts/FilesMailRu.py
index 98fe13248..ea976bd44 100644
--- a/module/plugins/accounts/FilesMailRu.py
+++ b/module/plugins/accounts/FilesMailRu.py
@@ -18,8 +18,7 @@
"""
from module.plugins.Account import Account
-import re
-from time import time
+
class FilesMailRu(Account):
__name__ = "FilesMailRu"
@@ -31,11 +30,13 @@ class FilesMailRu(Account):
def loadAccountInfo(self, user, req):
return {"validuntil": None, "trafficleft": None}
-
- def login(self, user, data,req):
+
+ def login(self, user, data, req):
user, domain = user.split("@")
- page = req.load("http://swa.mail.ru/cgi-bin/auth", None, { "Domain" : domain, "Login": user, "Password" : data['password'], "Page" : "http://files.mail.ru/"}, cookies=True)
+ page = req.load("http://swa.mail.ru/cgi-bin/auth", None,
+ {"Domain": domain, "Login": user, "Password": data['password'],
+ "Page": "http://files.mail.ru/"}, cookies=True)
- if "Неверное имя пользователя или пароль" in page: # @TODO seems not to work
+ if "Неверное имя пользователя или пароль" in page: # @TODO seems not to work
self.wrongPassword()