summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:27:08 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:13:45 +0200
commit31449f9e22cf4b5ae0f147a46bcbbf6f53a098a5 (patch)
tree63e5728b9246e76a60c9ccac0564c3a5d74126cf
parentRemoved all @author flags + key attributes cleanup for internal & hooks plugins (diff)
downloadpyload-31449f9e22cf4b5ae0f147a46bcbbf6f53a098a5.tar.xz
Fix class definition
-rw-r--r--module/plugins/hoster/DlFreeFr.py2
-rw-r--r--module/plugins/internal/CaptchaService.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/DlFreeFr.py b/module/plugins/hoster/DlFreeFr.py
index 5bbf48e9a..68ffd7619 100644
--- a/module/plugins/hoster/DlFreeFr.py
+++ b/module/plugins/hoster/DlFreeFr.py
@@ -29,7 +29,7 @@ class CustomBrowser(Browser):
return Browser.load(self, *args, **kwargs)
-class AdYouLike():
+class AdYouLike:
"""
Class to support adyoulike captcha service
"""
diff --git a/module/plugins/internal/CaptchaService.py b/module/plugins/internal/CaptchaService.py
index c2c66ed31..b2f73e4ea 100644
--- a/module/plugins/internal/CaptchaService.py
+++ b/module/plugins/internal/CaptchaService.py
@@ -4,7 +4,7 @@ import re
from random import random
-class CaptchaService():
+class CaptchaService:
__name__ = "CaptchaService"
__version__ = "0.05"
@@ -17,7 +17,7 @@ class CaptchaService():
self.plugin = plugin
-class ReCaptcha():
+class ReCaptcha:
RECAPTCHA_KEY_PATTERN = r"https?://(?:www\.)?google\.com/recaptcha/api/challenge\?k=(?P<key>\w+)"
RECAPTCHA_KEY_AJAX_PATTERN = r"Recaptcha\.create\s*\(\s*[\"'](?P<key>\w+)[\"']\s*,"