diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-01 16:45:36 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-01 16:45:36 +0200 |
commit | 9ff63382d144732acb92cbe72ce7e58f5ac311a5 (patch) | |
tree | 929683b335743bb659c8f6afd84fdf8822f9ab7d /pyload/plugin/captcha/AdsCaptcha.py | |
parent | Merge branch 'stable' into 0.4.10 (diff) | |
download | pyload-9ff63382d144732acb92cbe72ce7e58f5ac311a5.tar.xz |
Use 'import' instead 'from' (1)
Diffstat (limited to 'pyload/plugin/captcha/AdsCaptcha.py')
-rw-r--r-- | pyload/plugin/captcha/AdsCaptcha.py | 5 |
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") |