summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/captcha/AdsCaptcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/captcha/AdsCaptcha.py')
-rw-r--r--pyload/plugin/captcha/AdsCaptcha.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugin/captcha/AdsCaptcha.py b/pyload/plugin/captcha/AdsCaptcha.py
index a0ccdda58..c2caa7bf6 100644
--- a/pyload/plugin/captcha/AdsCaptcha.py
+++ b/pyload/plugin/captcha/AdsCaptcha.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
+import random
import re
-from random import random
-
from pyload.plugin.Captcha import Captcha
@@ -71,7 +70,7 @@ class AdsCaptcha(Captcha):
def result(self, server, challenge):
result = self.plugin.decryptCaptcha("%sChallenge.aspx" % server,
- get={'cid': challenge, 'dummy': random()},
+ get={'cid': challenge, 'dummy': random.random()},
cookies=True,
imgtype="jpg")