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/Premium4Me.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'module/plugins/accounts/Premium4Me.py') diff --git a/module/plugins/accounts/Premium4Me.py b/module/plugins/accounts/Premium4Me.py index fbca3ce84..467c5943e 100644 --- a/module/plugins/accounts/Premium4Me.py +++ b/module/plugins/accounts/Premium4Me.py @@ -1,5 +1,6 @@ from module.plugins.Account import Account + class Premium4Me(Account): __name__ = "Premium4Me" __version__ = "0.03" @@ -17,7 +18,8 @@ class Premium4Me(Account): return account_info def login(self, user, data, req): - self.authcode = req.load("http://premium.to/api/getauthcode.php?username=%s&password=%s" % (user, data["password"])).strip() - + self.authcode = req.load("http://premium.to/api/getauthcode.php?username=%s&password=%s" % ( + user, data["password"])).strip() + if "wrong username" in self.authcode: - self.wrongPassword() \ No newline at end of file + self.wrongPassword() -- cgit v1.2.3