summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Base.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 17:49:14 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 17:49:14 +0200
commit8e15c1af88b61cebda68a3b40352bf388c2010c7 (patch)
treebd1fb40094d907ccad41b4770f947cf9cac020cf /module/plugins/internal/Base.py
parentMerge branch 'pr/n1997_GammaC0de' into stable (diff)
downloadpyload-8e15c1af88b61cebda68a3b40352bf388c2010c7.tar.xz
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/internal/Base.py')
-rw-r--r--module/plugins/internal/Base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/internal/Base.py b/module/plugins/internal/Base.py
index e3aaf202b..578b12f7f 100644
--- a/module/plugins/internal/Base.py
+++ b/module/plugins/internal/Base.py
@@ -45,7 +45,7 @@ def check_abort(fn):
class Base(Plugin):
- __name__ = "Base"
+ __name = "Base"
__type__ = "base"
__version__ = "0.11"
__status__ = "testing"
@@ -123,7 +123,7 @@ class Base(Plugin):
'url' : replace_patterns(url, cls.URL_REPLACEMENTS)}
try:
- info['pattern'] = re.match(cls.__pattern__, url).groupdict()
+ info['pattern'] = re.match(cls.__pattern, url).groupdict()
except Exception:
pass
@@ -208,7 +208,8 @@ class Base(Plugin):
self.pyfile.setStatus("starting")
- self.log_debug("PROCESS URL " + self.pyfile.url, "PLUGIN VERSION %s" % self.__version__)
+ self.log_debug("PROCESS URL " + self.pyfile.url,
+ "PLUGIN VERSION %s" % self.__version)
self.process(self.pyfile)