summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/BypassCaptcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 22:00:59 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 22:00:59 +0100
commit79725268402043906f619f7c09e848e02ab8a17b (patch)
tree5288f422b5f33005a19a0de2ddb53fecb99f3a21 /module/plugins/hooks/BypassCaptcha.py
parent[JustPremium] Rewritten (diff)
downloadpyload-79725268402043906f619f7c09e848e02ab8a17b.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/BypassCaptcha.py')
-rw-r--r--module/plugins/hooks/BypassCaptcha.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py
index 8e0d9d36e..cf8754dae 100644
--- a/module/plugins/hooks/BypassCaptcha.py
+++ b/module/plugins/hooks/BypassCaptcha.py
@@ -59,7 +59,7 @@ class BypassCaptcha(Hook):
def getCredits(self):
res = getURL(self.GETCREDITS_URL, post={"key": self.getConfig("passkey")})
- data = dict([x.split(' ', 1) for x in res.splitlines()])
+ data = dict(x.split(' ', 1) for x in res.splitlines())
return int(data['Left'])
@@ -79,7 +79,7 @@ class BypassCaptcha(Hook):
finally:
req.close()
- data = dict([x.split(' ', 1) for x in res.splitlines()])
+ data = dict(x.split(' ', 1) for x in res.splitlines())
if not data or "Value" not in data:
raise BypassCaptchaException(res)